From 90750bea3cb84ef08d57cbb5069c077fd469541e Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Thu, 2 Nov 2023 12:12:39 +0000 Subject: [PATCH 01/13] Address review comments --- doc/README.rst | 4 +++- doc/programming_guide/platform.rst | 2 +- test/rtos_drivers/hil/README.rst | 2 +- test/rtos_drivers/usb/README.rst | 2 +- test/rtos_drivers/usb/serial_send_receive.py | 3 +-- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/README.rst b/doc/README.rst index 8c9fe66a7..46b630538 100644 --- a/doc/README.rst +++ b/doc/README.rst @@ -2,7 +2,9 @@ Documentation Source #################### -This folder contains source files for the documentation. The sources do not render well in GitHub or an RST viewer. +This folder contains source files for the documentation and is intended for XMOS users. Pre-built documentation is published on https://www.xmos.com. + +The sources do not render well in GitHub or an RST viewer. In addition, some information is not visible at all and some links will not be functional. ********************** diff --git a/doc/programming_guide/platform.rst b/doc/programming_guide/platform.rst index 9a42d8128..a28ba5bba 100644 --- a/doc/programming_guide/platform.rst +++ b/doc/programming_guide/platform.rst @@ -27,4 +27,4 @@ The `Programming Guide `__. As well as providing a powerful toolchain for application development, the toolkit assists with application deployment and upgrade. +The xcore processors are accompanied by the `XTC Tools `_. As well as providing a powerful toolchain for application development, the toolkit assists with application deployment and upgrade. diff --git a/test/rtos_drivers/hil/README.rst b/test/rtos_drivers/hil/README.rst index 3a4feb1ea..bb425c662 100644 --- a/test/rtos_drivers/hil/README.rst +++ b/test/rtos_drivers/hil/README.rst @@ -63,7 +63,7 @@ To build the test application firmware, run the following command from the top o bash tools/ci/build_rtos_tests.sh -The ``build_rtos_tests.sh``` script will copy the test applications to the ``dist`` folder. +The ``build_rtos_tests.sh`` script will copy the test applications to the ``dist`` folder. Run the test with the following command from the top of the repository: diff --git a/test/rtos_drivers/usb/README.rst b/test/rtos_drivers/usb/README.rst index edf532cc3..7f4e4c5fa 100644 --- a/test/rtos_drivers/usb/README.rst +++ b/test/rtos_drivers/usb/README.rst @@ -52,7 +52,7 @@ run the following command from the root of this repository: bash tools/ci/build_rtos_tests.sh -The ``build_rtos_tests.sh``` script will copy the test applications to the ``dist`` folder. +The ``build_rtos_tests.sh`` script will copy the test applications to the ``dist`` folder. ************* Running Tests diff --git a/test/rtos_drivers/usb/serial_send_receive.py b/test/rtos_drivers/usb/serial_send_receive.py index 337ce61b2..5548a76fa 100644 --- a/test/rtos_drivers/usb/serial_send_receive.py +++ b/test/rtos_drivers/usb/serial_send_receive.py @@ -6,7 +6,6 @@ import serial import serial.tools.list_ports import argparse -import time # USB VID:PID for test application vid=0x20B1 @@ -86,4 +85,4 @@ def main(if0, if1, of0, of1): if __name__ == "__main__": args = parse_arguments() - main(args.if0, args.if1, args.of0, args.of1) \ No newline at end of file + main(args.if0, args.if1, args.of0, args.of1) From 0095f79a5ae9901e05f75e996973314f1b26163a Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Thu, 2 Nov 2023 15:51:01 +0000 Subject: [PATCH 02/13] Exclude more files --- doc/exclude_patterns.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/exclude_patterns.inc b/doc/exclude_patterns.inc index 27cc18955..443f5c662 100644 --- a/doc/exclude_patterns.inc +++ b/doc/exclude_patterns.inc @@ -6,8 +6,10 @@ xmos_cmake_toolchain modules/drivers modules/FreeRTOS modules/sw_services +thirdparty build build_* CHANGELOG.rst LICENSE.rst -**README* \ No newline at end of file +LICENSE.md +**README* From 4e0736360d4a52419fa735ccc3f15b6276492b46 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Thu, 2 Nov 2023 17:08:04 +0000 Subject: [PATCH 03/13] Update doc info --- doc/exclude_patterns.inc | 10 ++++------ index.rst | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/exclude_patterns.inc b/doc/exclude_patterns.inc index 443f5c662..6247fed17 100644 --- a/doc/exclude_patterns.inc +++ b/doc/exclude_patterns.inc @@ -3,13 +3,11 @@ tools projects test xmos_cmake_toolchain -modules/drivers +modules/**/thirdparty modules/FreeRTOS modules/sw_services -thirdparty build build_* -CHANGELOG.rst -LICENSE.rst -LICENSE.md -**README* +**CHANGELOG* +**LICENSE* +**README* diff --git a/index.rst b/index.rst index c192aaa5b..fd27d4a65 100644 --- a/index.rst +++ b/index.rst @@ -16,4 +16,4 @@ Framework of FreeRTOS kernel, RTOS drivers, and software service libraries for X Licensing ********* -This Software is subject to the terms of the `XMOS Public Licence: Version 1 `_. Copyrights and licenses for third party components can be found in :ref:`fwk_rtos_copyright`. \ No newline at end of file +This Software is subject to the terms of the `XMOS Public Licence: Version 1 `_. Copyrights and licenses for third party components can be found at the end of each guide. From 093fa23743cfc4e6bd82fe17c459bcd66ce79a6e Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 08:03:24 +0000 Subject: [PATCH 04/13] Remove double underscores --- .../tutorials/application_design.rst | 4 +-- .../tutorials/bsp_config.rst | 4 +-- doc/shared/legal.rst | 35 +++++++++---------- test/README.rst | 2 +- 4 files changed, 22 insertions(+), 23 deletions(-) diff --git a/doc/programming_guide/tutorials/application_design.rst b/doc/programming_guide/tutorials/application_design.rst index d0ca87049..35b7798a8 100644 --- a/doc/programming_guide/tutorials/application_design.rst +++ b/doc/programming_guide/tutorials/application_design.rst @@ -62,7 +62,7 @@ Board Support Configurations xcore leverages its architecture to provide a flexible chip where many typically silicon based peripherals are found in software. This allows a chip to be reconfigured in a way that provides the specific IO required for a given application, thus resulting in a low cost yet incredibly silicon efficient solution. Board support configurations (bsp_configs) are the description for the hardware IO that exists in a given board. The bsp_configs provide the application programmer with an API to initialize and start the hardware configuration, as well as the supported RTOS driver contexts. The programming model in this FreeRTOS architecture is: -- `.xn files `__ provide the mapping of ports, pins, and links +- `.xn files `_ provide the mapping of ports, pins, and links - bsp_configs specify, setup, and start hardware IO and provide the application with RTOS driver contexts - applications use the bsp_config init/start code as well as RTOS driver contexts, similar to conventional microcontroller programming models. @@ -77,7 +77,7 @@ Creating Custom bsp_configs To enable hardware portability, a minimal bsp_config should contain the following: .. code-block:: console - + custom_config/ platform/ driver_instances.c diff --git a/doc/programming_guide/tutorials/bsp_config.rst b/doc/programming_guide/tutorials/bsp_config.rst index 92467094a..ecf0bb71d 100644 --- a/doc/programming_guide/tutorials/bsp_config.rst +++ b/doc/programming_guide/tutorials/bsp_config.rst @@ -5,7 +5,7 @@ Board Support Configurations xcore leverages its architecture to provide a flexible chip where many typically silicon based peripherals are found in software. This allows a chip to be reconfigured in a way that provides the specific IO required for a given application, thus resulting in a low cost yet incredibly silicon efficient solution. Board support configurations (bsp_configs) are the description for the hardware IO that exists in a given board. The bsp_configs provide the application programmer with an API to initialize and start the hardware configuration, as well as the supported RTOS driver contexts. The programming model in this FreeRTOS architecture is: -- `.xn files `__ provide the mapping of ports, pins, and links +- `.xn files `_ provide the mapping of ports, pins, and links - bsp_configs specify, setup, and start hardware IO and provide the application with RTOS driver contexts - applications use the bsp_config init/start code as well as RTOS driver contexts, similar to conventional microcontroller programming models. @@ -20,7 +20,7 @@ Creating Custom bsp_configs To enable hardware portability, a minimal ``bsp_config`` should contain the following: .. code-block:: console - + custom_config/ platform/ driver_instances.c diff --git a/doc/shared/legal.rst b/doc/shared/legal.rst index b0b45b002..bde0605ea 100644 --- a/doc/shared/legal.rst +++ b/doc/shared/legal.rst @@ -4,11 +4,11 @@ Copyright & Disclaimer ====================== - + |XMOS copyright| - + |XMOS disclaimer| - + |XMOS trademarks| @@ -32,19 +32,18 @@ Additional third party code is included under the following copyrights and licen * - Module - Copyright & License - * - `Argtable3 `__ - - Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann, licensed under `LICENSE `__ - * - `FatFS `__ - - Copyright (C) 2017 ChaN, licensed under a `BSD-style license `__ - * - `FreeRTOS `__ - - Copyright (c) 2017 Amazon.com, Inc., licensed under the `MIT License `__ + * - `Argtable3 `_ + - Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann, licensed under `LICENSE `_ + - Copyright (C) 2017 ChaN, licensed under a `BSD-style license `_ + * - `FreeRTOS `_ + - Copyright (c) 2017 Amazon.com, Inc., licensed under the `MIT License `_ * - HTTP Parser - - Copyright (c) Joyent, Inc. and other Node contributors, licensed under the `MIT license `__ - * - `JSMN JSON Parser `__ - - Copyright (c) 2010 Serge A. Zaitsev, licensed under the `MIT license `__ - * - `Mbed TLS library `__ - - Copyright (c) 2006-2018 ARM Limited, licensed under the `Apache License 2.0 `__ - * - `Paho MQTT C/C++ client for Embedded platforms `__ - - Copyright (c) 2020 The TensorFlow Authors, licensed under the `Apache License `__ - * - `TinyUSB `__ - - Copyright (c) 2018 hathach (tinyusb.org), licensed under the `MIT license `__ + - Copyright (c) Joyent, Inc. and other Node contributors, licensed under the `MIT license `_ + * - `JSMN JSON Parser `_ + - Copyright (c) 2010 Serge A. Zaitsev, licensed under the `MIT license `_ + * - `Mbed TLS library `_ + - Copyright (c) 2006-2018 ARM Limited, licensed under the `Apache License 2.0 `_ + * - `Paho MQTT C/C++ client for Embedded platforms `_ + - Copyright (c) 2020 The TensorFlow Authors, licensed under the `Apache License `_ + * - `TinyUSB `_ + - Copyright (c) 2018 hathach (tinyusb.org), licensed under the `MIT license `_ diff --git a/test/README.rst b/test/README.rst index c9c35898d..800c67096 100644 --- a/test/README.rst +++ b/test/README.rst @@ -9,7 +9,7 @@ Requirements The following software is required for running tests. * Linux, MacOS, or Windows Subsystem for Linux -* `Python 3.8 `__ +* `Python 3.8 `_ Python Virtual Environment ========================== From 9561ee735bf21340adb040f8090fce06954ee942 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 08:32:33 +0000 Subject: [PATCH 05/13] Fix text --- modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c | 3 +-- modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.h | 2 +- modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_spi.c | 2 +- modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_task.c | 2 +- modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_iot_wifi.c | 2 +- modules/sw_services/wifi_manager/FreeRTOS/heapsort.h | 1 - 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c index 5acb39802..b477dd5af 100644 --- a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c +++ b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c @@ -1,7 +1,6 @@ -// Copyright 2020 XMOS LIMITED. This Software is subject to the terms of the +// Copyright 2020 XMOS LIMITED. This Software is subject to the terms of the // This Software is subject to the terms of the XMOS Public Licence: Version 1. - #include #include diff --git a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.h b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.h index 9e5571c8d..727556a60 100644 --- a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.h +++ b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef SL_WFX_HOST_H_ diff --git a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_spi.c b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_spi.c index 52af81d52..e0960262a 100644 --- a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_spi.c +++ b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_spi.c @@ -1,4 +1,4 @@ -// Copyright 2020 XMOS LIMITED. This Software is subject to the terms of the +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_task.c b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_task.c index e39f87528..ec6f76e56 100644 --- a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_task.c +++ b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host_task.c @@ -1,4 +1,4 @@ -// Copyright 2020 XMOS LIMITED. This Software is subject to the terms of the +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_iot_wifi.c b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_iot_wifi.c index c055e5fe8..4194d4e92 100644 --- a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_iot_wifi.c +++ b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_iot_wifi.c @@ -1,4 +1,4 @@ -// Copyright 2019 XMOS LIMITED. This Software is subject to the terms of the +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT IOT_WIFI diff --git a/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h b/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h index 5384929b3..ccdcdf95f 100644 --- a/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h +++ b/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h @@ -1,7 +1,6 @@ // Copyright 2021 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. - #ifndef HEAPSORT_H_ #define HEAPSORT_H_ From 4965d74ffcca8ca6979e3b587e2dd89fb9b3b792 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 08:40:09 +0000 Subject: [PATCH 06/13] Update copyright notices --- .xmos_ignore_source_check | 3 + .../XCORE-AI-EXPLORER_1V1/platform/aic3204.h | 2 +- .../platform/app_pll_ctrl.c | 4 +- .../platform/app_pll_ctrl.h | 4 +- .../platform/driver_instances.c | 4 +- .../platform/driver_instances.h | 4 +- .../platform/platform_conf.h | 4 +- .../platform/platform_init.c | 4 +- .../platform/platform_init.h | 4 +- .../platform/platform_start.c | 4 +- .../XCORE-AI-EXPLORER_2V0/platform/aic3204.h | 2 +- .../platform/app_pll_ctrl.c | 4 +- .../platform/app_pll_ctrl.h | 4 +- .../platform/driver_instances.c | 4 +- .../platform/driver_instances.h | 4 +- .../platform/platform_conf.h | 4 +- .../platform/platform_init.c | 4 +- .../platform/platform_init.h | 4 +- .../platform/platform_start.c | 4 +- .../api/rtos_clock_control_rpc.h | 2 +- .../src/rtos_clock_control_rpc.c | 2 +- modules/drivers/gpio/api/rtos_gpio.h | 2 +- modules/drivers/gpio/api/rtos_gpio_rpc.h | 2 +- modules/drivers/gpio/src/rtos_gpio.c | 2 +- modules/drivers/gpio/src/rtos_gpio_rpc.c | 2 +- modules/drivers/i2c/api/rtos_i2c_master.h | 2 +- modules/drivers/i2c/api/rtos_i2c_master_rpc.h | 2 +- modules/drivers/i2c/api/rtos_i2c_slave.h | 2 +- modules/drivers/i2c/src/rtos_i2c_master.c | 2 +- modules/drivers/i2c/src/rtos_i2c_master_rpc.c | 2 +- modules/drivers/i2c/src/rtos_i2c_slave.c | 2 +- modules/drivers/i2s/api/rtos_i2s.h | 2 +- modules/drivers/i2s/api/rtos_i2s_rpc.h | 2 +- modules/drivers/i2s/src/rtos_i2s.c | 2 +- modules/drivers/i2s/src/rtos_i2s_rpc.c | 2 +- .../drivers/intertile/api/rtos_intertile.h | 2 +- .../drivers/intertile/src/rtos_intertile.c | 2 +- modules/drivers/l2_cache/api/rtos_l2_cache.h | 2 +- modules/drivers/l2_cache/src/rtos_l2_cache.c | 2 +- .../mic_array/api/rtos_mic_array_rpc.h | 2 +- .../qspi_flash/api/rtos_qspi_flash_rpc.h | 2 +- modules/drivers/rpc/api/rtos_driver_rpc.h | 2 +- modules/drivers/rpc/api/rtos_rpc.h | 2 +- modules/drivers/rpc/src/rtos_rpc.c | 2 +- modules/drivers/spi/api/rtos_spi_master.h | 2 +- modules/drivers/spi/api/rtos_spi_master_rpc.h | 2 +- modules/drivers/spi/api/rtos_spi_slave.h | 2 +- modules/drivers/spi/src/rtos_spi_master.c | 2 +- modules/drivers/spi/src/rtos_spi_master_rpc.c | 2 +- modules/drivers/spi/src/rtos_spi_slave.c | 2 +- modules/drivers/swmem/api/rtos_swmem.h | 2 +- .../trace/FreeRTOS/ASCII/ascii_trace.c | 2 +- .../drivers/trace/FreeRTOS/api/ascii_trace.h | 2 +- .../drivers/trace/FreeRTOS/api/xcore_trace.h | 2 +- modules/drivers/uart/api/rtos_uart_tx_rpc.h | 2 +- modules/drivers/uart/src/rtos_uart_tx_rpc.c | 2 +- modules/drivers/usb/api/rtos_usb.h | 2 +- modules/drivers/usb/src/rtos_usb.c | 2 +- modules/drivers/usb/src/xud_xfer_data.S | 2 +- modules/drivers/usb/src/xud_xfer_data.h | 2 +- .../FreeRTOS/rtos_osal_event_group_port.c | 2 +- modules/osal/FreeRTOS/rtos_osal_heap.c | 2 +- modules/osal/FreeRTOS/rtos_osal_mutex_port.c | 2 +- modules/osal/FreeRTOS/rtos_osal_port.h | 2 +- modules/osal/FreeRTOS/rtos_osal_queue_port.c | 2 +- .../osal/FreeRTOS/rtos_osal_semaphore_port.c | 2 +- modules/osal/FreeRTOS/rtos_osal_time.c | 2 +- modules/rtos_support/api/rtos_cores.h | 2 +- modules/rtos_support/api/rtos_interrupt.h | 2 +- modules/rtos_support/api/rtos_irq.h | 2 +- modules/rtos_support/api/rtos_locks.h | 2 +- modules/rtos_support/api/rtos_macros.h | 2 +- modules/rtos_support/api/rtos_printf.h | 2 +- modules/rtos_support/api/rtos_support.h | 2 +- modules/rtos_support/api/rtos_time.h | 2 +- modules/rtos_support/src/rtos_cores.c | 2 +- .../rtos_support/src/rtos_interrupt_impl.h | 2 +- modules/rtos_support/src/rtos_irq.c | 2 +- modules/rtos_support/src/rtos_locks.c | 2 +- modules/rtos_support/src/rtos_time.c | 2 +- .../api/concurrency_support.h | 4 +- .../concurrency_support/api/mrsw_lock.h | 4 +- .../device_control/api/device_control.h | 2 +- .../api/device_control_shared.h | 2 +- .../host/control_host_support.h | 2 +- .../host/device_access_i2c_rpi.c | 2 +- .../host/device_access_spi_rpi.c | 2 +- .../device_control/host/device_access_usb.c | 2 +- .../device_control/host/device_control_host.h | 2 +- .../sw_services/device_control/host/util.c | 2 +- .../sw_services/device_control/host/util.h | 2 +- .../device_control/src/device_control.c | 2 +- .../device_control/src/resource_table.c | 2 +- .../transport/i2c/device_control_i2c.h | 4 +- .../transport/spi/device_control_spi.c | 2 + .../transport/spi/device_control_spi.h | 2 + .../transport/usb/device_control_usb.c | 2 +- .../transport/usb/device_control_usb.h | 4 +- .../dhcpd/FreeRTOS/berkeley_compat.h | 2 +- modules/sw_services/dhcpd/FreeRTOS/dhcpd.c | 2 +- modules/sw_services/dhcpd/api/dhcpd.h | 2 +- modules/sw_services/fatfs/FreeRTOS/ffconf.h | 764 +++++++++--------- .../sw_services/fatfs/FreeRTOS/fs_support.c | 2 +- .../sw_services/fatfs/FreeRTOS/fs_support.h | 2 +- .../generic_pipeline/api/generic_pipeline.h | 4 +- .../generic_pipeline/src/generic_pipeline.c | 4 +- .../sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.c | 2 + .../sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.h | 2 + modules/sw_services/sntpd/FreeRTOS/sntpd.c | 2 +- modules/sw_services/sntpd/FreeRTOS/sntpd.h | 2 +- .../FreeRTOS/api/mbedtls_support.h | 2 +- .../tls_support/FreeRTOS/api/threading_alt.h | 2 +- .../tls_support/FreeRTOS/mbedtls_support.c | 2 +- .../sw_services/tls_support/api/tls_support.h | 2 +- .../sw_services/usb/FreeRTOS/usb_support.c | 2 +- modules/sw_services/usb/api/usb_support.h | 2 +- .../sw_services/usb/msc/msc_disk_manager.c | 2 +- .../sw_services/usb/msc/msc_disk_manager.h | 2 +- modules/sw_services/usb/msc/msc_flashdisk.c | 2 +- modules/sw_services/usb/msc/msc_ramdisk.c | 2 +- .../wifi_manager/FreeRTOS/heapsort.h | 2 +- .../FreeRTOS/wifi_connection_mgr.c | 2 +- modules/sw_services/wifi_manager/api/wifi.h | 2 +- .../clock_control/src/FreeRTOSConfig.h | 238 +++--- .../rtos_drivers/clock_control/src/app_conf.h | 4 +- test/rtos_drivers/clock_control/src/main.c | 4 +- .../src/platform/driver_instances.c | 4 +- .../src/platform/driver_instances.h | 4 +- .../src/platform/platform_init.c | 4 +- .../src/platform/platform_init.h | 4 +- .../src/platform/platform_start.c | 4 +- test/rtos_drivers/hil/src/FreeRTOSConfig.h | 238 +++--- test/rtos_drivers/hil/src/app_conf.h | 2 +- test/rtos_drivers/hil/src/board_init.c | 2 +- test/rtos_drivers/hil/src/board_init.h | 2 +- .../hil/src/individual_tests/gpio/gpio_test.c | 2 +- .../hil/src/individual_tests/gpio/gpio_test.h | 2 +- .../src/individual_tests/gpio/local/io_test.c | 2 +- .../src/individual_tests/gpio/rpc/io_test.c | 2 +- .../hil/src/individual_tests/i2c/i2c_test.c | 2 +- .../hil/src/individual_tests/i2c/i2c_test.h | 2 +- .../i2c/local/master_read_multiple_test.c | 2 +- .../i2c/local/master_read_test.c | 2 +- .../i2c/local/master_reg_read_test.c | 2 +- .../i2c/local/master_reg_write_test.c | 2 +- .../i2c/local/master_write_multiple_test.c | 2 +- .../i2c/local/master_write_test.c | 2 +- .../i2c/rpc/master_read_multiple_test.c | 2 +- .../i2c/rpc/master_read_test.c | 2 +- .../i2c/rpc/master_reg_read_test.c | 2 +- .../i2c/rpc/master_reg_write_test.c | 2 +- .../i2c/rpc/master_write_multiple_test.c | 2 +- .../i2c/rpc/master_write_test.c | 2 +- .../hil/src/individual_tests/i2s/i2s_test.c | 2 +- .../hil/src/individual_tests/i2s/i2s_test.h | 2 +- .../i2s/local/master_to_slave_test.c | 2 +- .../i2s/local/slave_to_master_test.c | 2 +- .../i2s/rpc/master_to_slave_test.c | 2 +- .../i2s/rpc/slave_to_master_test.c | 2 +- .../src/individual_tests/individual_tests.h | 2 +- .../intertile/intertile_test.c | 2 +- .../intertile/intertile_test.h | 2 +- .../intertile/local/fixed_len_tx_test.c | 2 +- .../intertile/local/var_len_tx_test.c | 2 +- .../mic_array/local/get_samples_test.c | 2 +- .../mic_array/mic_array_test.c | 2 +- .../mic_array/mic_array_test.h | 2 +- .../mic_array/rpc/get_samples_test.c | 2 +- .../qspi_flash/global/check_params_test.c | 2 +- .../qspi_flash/global/multiple_user_test.c | 2 +- .../qspi_flash/local/read_write_read_test.c | 2 +- .../qspi_flash/qspi_flash_test.c | 2 +- .../qspi_flash/qspi_flash_test.h | 2 +- .../qspi_flash/rpc/read_write_read_test.c | 2 +- .../swmem/local/swmem_read_write_test.c | 2 +- .../src/individual_tests/swmem/swmem_test.c | 2 +- .../src/individual_tests/swmem/swmem_test.h | 2 +- test/rtos_drivers/hil/src/main.c | 2 +- .../hil/src/rtos_test/rtos_test_utils.h | 2 +- .../hil/test_verify_gpio_results.py | 2 +- .../hil/test_verify_i2c_results.py | 2 +- .../hil/test_verify_i2s_results.py | 2 +- .../hil/test_verify_intertile_results.py | 2 +- .../hil/test_verify_mic_array_results.py | 2 +- .../hil/test_verify_swmem_results.py | 2 +- .../rtos_drivers/hil_add/src/FreeRTOSConfig.h | 238 +++--- test/rtos_drivers/hil_add/src/app_conf.h | 2 +- test/rtos_drivers/hil_add/src/board_init.c | 2 +- test/rtos_drivers/hil_add/src/board_init.h | 2 +- .../src/individual_tests/individual_tests.h | 2 +- .../qspi_flash/global/check_params_test.c | 2 +- .../qspi_flash/global/multiple_user_test.c | 2 +- .../local/read_write_read_mode_test.c | 2 +- .../qspi_flash/local/read_write_read_test.c | 2 +- .../qspi_flash/qspi_flash_test.c | 2 +- .../qspi_flash/qspi_flash_test.h | 2 +- .../rpc/read_write_read_mode_test.c | 2 +- .../qspi_flash/rpc/read_write_read_test.c | 2 +- .../spi/local/multiple_transaction_test.c | 2 +- .../spi/local/single_transaction_test.c | 2 +- .../spi/local/slave_default_buffer_test.c | 2 +- .../spi/rpc/multiple_transaction_test.c | 2 +- .../spi/rpc/single_transaction_test.c | 2 +- .../src/individual_tests/spi/spi_test.c | 2 +- .../src/individual_tests/spi/spi_test.h | 2 +- .../uart/local/tx_write_rx_read_test.c | 3 +- .../src/individual_tests/uart/uart_test.c | 2 +- .../src/individual_tests/uart/uart_test.h | 2 +- test/rtos_drivers/hil_add/src/main.c | 2 +- .../hil_add/src/rtos_test/rtos_test_utils.h | 2 +- .../hil_add/test_verify_spi_results.py | 2 +- test/rtos_drivers/python/file_regex_parser.py | 2 +- test/rtos_drivers/python/parse_test_output.py | 2 +- test/rtos_drivers/usb/src/FreeRTOSConfig.h | 238 +++--- test/rtos_drivers/usb/src/FreeRTOSIPConfig.h | 746 ++++++++--------- test/rtos_drivers/usb/src/board_init.c | 2 +- test/rtos_drivers/usb/src/board_init.h | 2 +- .../src/individual_tests/individual_tests.h | 2 +- .../usb/local/usb_descriptors.h | 2 +- .../usb/src/individual_tests/usb/usb_test.c | 2 +- .../usb/src/individual_tests/usb/usb_test.h | 2 +- test/rtos_drivers/usb/src/main.c | 2 +- .../usb/src/rtos_test/rtos_test_utils.h | 2 +- .../usb/test_verify_usb_results.py | 2 +- .../wifi/filesystem_support/wifi_profile.py | 3 +- .../wifi/python/file_regex_parser.py | 2 +- .../wifi/python/parse_test_output.py | 2 +- test/rtos_drivers/wifi/src/FreeRTOSConfig.h | 238 +++--- test/rtos_drivers/wifi/src/FreeRTOSIPConfig.h | 746 ++++++++--------- test/rtos_drivers/wifi/src/app_conf.h | 2 +- test/rtos_drivers/wifi/src/board_init.c | 2 +- test/rtos_drivers/wifi/src/board_init.h | 2 +- test/rtos_drivers/wifi/src/ff_appconf.h | 58 +- .../src/individual_tests/individual_tests.h | 2 +- .../individual_tests/wifi/local/wifi_test.c | 2 +- .../src/individual_tests/wifi/wifi_test.c | 2 +- .../src/individual_tests/wifi/wifi_test.h | 2 +- test/rtos_drivers/wifi/src/main.c | 2 +- .../wifi/src/rtos_test/rtos_test_utils.h | 2 +- .../wifi/test_verify_wifi_results.py | 2 +- tools/fatfs_mkimage/argtable/argtable3.c | 2 + tools/fatfs_mkimage/argtable/argtable3.h | 2 + tools/fatfs_mkimage/src/directory_add.c | 4 +- tools/fatfs_mkimage/src/directory_add.h | 4 +- tools/fatfs_mkimage/src/fatfs_mkimage.c | 4 +- tools/fatfs_mkimage/src/fatfs_ops.c | 4 +- tools/fatfs_mkimage/src/fatfs_ops.h | 4 +- tools/fatfs_mkimage/src/ffconf.h | 2 + tools/fatfs_mkimage/src/ramdisk.c | 4 +- tools/fatfs_mkimage/src/ramdisk.h | 4 +- tools/fatfs_mkimage/src/tinydir.h | 2 + 251 files changed, 2050 insertions(+), 2013 deletions(-) create mode 100644 .xmos_ignore_source_check diff --git a/.xmos_ignore_source_check b/.xmos_ignore_source_check new file mode 100644 index 000000000..a403df5ce --- /dev/null +++ b/.xmos_ignore_source_check @@ -0,0 +1,3 @@ +modules/FreeRTOS +modules/drivers/wifi +thirdparty diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/aic3204.h b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/aic3204.h index 0300d9db3..c7b1bf1e7 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/aic3204.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/aic3204.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef AIC3204_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.c b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.c index e8d338a68..13e950b0b 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #include diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.h b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.h index 8ba82dc7d..ca70400a1 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/app_pll_ctrl.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef APP_PLL_CTRL_H_ #define APP_PLL_CTRL_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.c b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.c index 4b219b67d..ed77d060b 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "platform/driver_instances.h" diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.h b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.h index 9b2ed4ee2..82dd0a1e0 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/driver_instances.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef DRIVER_INSTANCES_H_ #define DRIVER_INSTANCES_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_conf.h b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_conf.h index 1a538f35a..c6e1f05fa 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_conf.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_conf.h @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef PLATFORM_CONF_H_ #define PLATFORM_CONF_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.c b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.c index 702dca605..601d55abd 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.h b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.h index 98725556d..9d1b1b531 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_init.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef PLATFORM_INIT_H_ #define PLATFORM_INIT_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_start.c b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_start.c index 8d3ff1746..9a5aed6f8 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_start.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_1V1/platform/platform_start.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/aic3204.h b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/aic3204.h index 0300d9db3..c7b1bf1e7 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/aic3204.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/aic3204.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef AIC3204_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.c b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.c index e8d338a68..13e950b0b 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #include diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.h b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.h index 8ba82dc7d..ca70400a1 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/app_pll_ctrl.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef APP_PLL_CTRL_H_ #define APP_PLL_CTRL_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.c b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.c index 4b219b67d..ed77d060b 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "platform/driver_instances.h" diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.h b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.h index 9b2ed4ee2..82dd0a1e0 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/driver_instances.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef DRIVER_INSTANCES_H_ #define DRIVER_INSTANCES_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_conf.h b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_conf.h index 1a538f35a..c6e1f05fa 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_conf.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_conf.h @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef PLATFORM_CONF_H_ #define PLATFORM_CONF_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.c b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.c index 702dca605..601d55abd 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.h b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.h index 98725556d..9d1b1b531 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.h +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_init.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef PLATFORM_INIT_H_ #define PLATFORM_INIT_H_ diff --git a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_start.c b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_start.c index 8d3ff1746..9a5aed6f8 100644 --- a/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_start.c +++ b/modules/bsp_config/XCORE-AI-EXPLORER_2V0/platform/platform_start.c @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/clock_control/api/rtos_clock_control_rpc.h b/modules/drivers/clock_control/api/rtos_clock_control_rpc.h index b63c6e35d..88453f439 100644 --- a/modules/drivers/clock_control/api/rtos_clock_control_rpc.h +++ b/modules/drivers/clock_control/api/rtos_clock_control_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_CLOCK_CONTROL_RPC_H_ diff --git a/modules/drivers/clock_control/src/rtos_clock_control_rpc.c b/modules/drivers/clock_control/src/rtos_clock_control_rpc.c index 2f93de74f..46f9c959d 100644 --- a/modules/drivers/clock_control/src/rtos_clock_control_rpc.c +++ b/modules/drivers/clock_control/src/rtos_clock_control_rpc.c @@ -1,4 +1,4 @@ -// Copyright 2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/gpio/api/rtos_gpio.h b/modules/drivers/gpio/api/rtos_gpio.h index 8522ce5a1..3a2ede976 100644 --- a/modules/drivers/gpio/api/rtos_gpio.h +++ b/modules/drivers/gpio/api/rtos_gpio.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_GPIO_H_ diff --git a/modules/drivers/gpio/api/rtos_gpio_rpc.h b/modules/drivers/gpio/api/rtos_gpio_rpc.h index 68288cdf5..81130dc55 100644 --- a/modules/drivers/gpio/api/rtos_gpio_rpc.h +++ b/modules/drivers/gpio/api/rtos_gpio_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_GPIO_RPC_H_ diff --git a/modules/drivers/gpio/src/rtos_gpio.c b/modules/drivers/gpio/src/rtos_gpio.c index a6383199a..01622b3fb 100644 --- a/modules/drivers/gpio/src/rtos_gpio.c +++ b/modules/drivers/gpio/src/rtos_gpio.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/gpio/src/rtos_gpio_rpc.c b/modules/drivers/gpio/src/rtos_gpio_rpc.c index 0250b051d..487f24578 100644 --- a/modules/drivers/gpio/src/rtos_gpio_rpc.c +++ b/modules/drivers/gpio/src/rtos_gpio_rpc.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/i2c/api/rtos_i2c_master.h b/modules/drivers/i2c/api/rtos_i2c_master.h index 1aab5e634..47f165ddb 100644 --- a/modules/drivers/i2c/api/rtos_i2c_master.h +++ b/modules/drivers/i2c/api/rtos_i2c_master.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_I2C_MASTER_H_ diff --git a/modules/drivers/i2c/api/rtos_i2c_master_rpc.h b/modules/drivers/i2c/api/rtos_i2c_master_rpc.h index 74a21b590..6706e973b 100644 --- a/modules/drivers/i2c/api/rtos_i2c_master_rpc.h +++ b/modules/drivers/i2c/api/rtos_i2c_master_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_I2C_MASTER_RPC_H_ diff --git a/modules/drivers/i2c/api/rtos_i2c_slave.h b/modules/drivers/i2c/api/rtos_i2c_slave.h index 1a11d4969..95837dfca 100644 --- a/modules/drivers/i2c/api/rtos_i2c_slave.h +++ b/modules/drivers/i2c/api/rtos_i2c_slave.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_I2C_SLAVE_H_ diff --git a/modules/drivers/i2c/src/rtos_i2c_master.c b/modules/drivers/i2c/src/rtos_i2c_master.c index eec643b4e..e13ef5595 100644 --- a/modules/drivers/i2c/src/rtos_i2c_master.c +++ b/modules/drivers/i2c/src/rtos_i2c_master.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT RTOS_I2C diff --git a/modules/drivers/i2c/src/rtos_i2c_master_rpc.c b/modules/drivers/i2c/src/rtos_i2c_master_rpc.c index 29107ba4a..af76c5227 100644 --- a/modules/drivers/i2c/src/rtos_i2c_master_rpc.c +++ b/modules/drivers/i2c/src/rtos_i2c_master_rpc.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "rtos_rpc.h" diff --git a/modules/drivers/i2c/src/rtos_i2c_slave.c b/modules/drivers/i2c/src/rtos_i2c_slave.c index 4068a0b0c..136b0314a 100644 --- a/modules/drivers/i2c/src/rtos_i2c_slave.c +++ b/modules/drivers/i2c/src/rtos_i2c_slave.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/i2s/api/rtos_i2s.h b/modules/drivers/i2s/api/rtos_i2s.h index 9c25247e2..4d0fde4a5 100644 --- a/modules/drivers/i2s/api/rtos_i2s.h +++ b/modules/drivers/i2s/api/rtos_i2s.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_I2S_H_ diff --git a/modules/drivers/i2s/api/rtos_i2s_rpc.h b/modules/drivers/i2s/api/rtos_i2s_rpc.h index c10f083b1..45fdcc702 100644 --- a/modules/drivers/i2s/api/rtos_i2s_rpc.h +++ b/modules/drivers/i2s/api/rtos_i2s_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_I2S_RPC_H_ diff --git a/modules/drivers/i2s/src/rtos_i2s.c b/modules/drivers/i2s/src/rtos_i2s.c index c09fccbc3..f4dbfd543 100644 --- a/modules/drivers/i2s/src/rtos_i2s.c +++ b/modules/drivers/i2s/src/rtos_i2s.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT RTOS_I2S diff --git a/modules/drivers/i2s/src/rtos_i2s_rpc.c b/modules/drivers/i2s/src/rtos_i2s_rpc.c index 48b115060..2dd4e2a41 100644 --- a/modules/drivers/i2s/src/rtos_i2s_rpc.c +++ b/modules/drivers/i2s/src/rtos_i2s_rpc.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "rtos_rpc.h" diff --git a/modules/drivers/intertile/api/rtos_intertile.h b/modules/drivers/intertile/api/rtos_intertile.h index 3f968e60d..3c107fc4c 100644 --- a/modules/drivers/intertile/api/rtos_intertile.h +++ b/modules/drivers/intertile/api/rtos_intertile.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/drivers/intertile/src/rtos_intertile.c b/modules/drivers/intertile/src/rtos_intertile.c index a8fffd842..38343b71a 100644 --- a/modules/drivers/intertile/src/rtos_intertile.c +++ b/modules/drivers/intertile/src/rtos_intertile.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/l2_cache/api/rtos_l2_cache.h b/modules/drivers/l2_cache/api/rtos_l2_cache.h index 2333926e8..115c630fd 100644 --- a/modules/drivers/l2_cache/api/rtos_l2_cache.h +++ b/modules/drivers/l2_cache/api/rtos_l2_cache.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_L2_CACHE_H_ diff --git a/modules/drivers/l2_cache/src/rtos_l2_cache.c b/modules/drivers/l2_cache/src/rtos_l2_cache.c index 127e7ed38..537eab4b9 100644 --- a/modules/drivers/l2_cache/src/rtos_l2_cache.c +++ b/modules/drivers/l2_cache/src/rtos_l2_cache.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/mic_array/api/rtos_mic_array_rpc.h b/modules/drivers/mic_array/api/rtos_mic_array_rpc.h index 590243469..5bd9f253e 100644 --- a/modules/drivers/mic_array/api/rtos_mic_array_rpc.h +++ b/modules/drivers/mic_array/api/rtos_mic_array_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_MIC_ARRAY_RPC_H_ diff --git a/modules/drivers/qspi_flash/api/rtos_qspi_flash_rpc.h b/modules/drivers/qspi_flash/api/rtos_qspi_flash_rpc.h index 8c140c484..010aa7cba 100644 --- a/modules/drivers/qspi_flash/api/rtos_qspi_flash_rpc.h +++ b/modules/drivers/qspi_flash/api/rtos_qspi_flash_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_QSPI_FLASH_RPC_H_ diff --git a/modules/drivers/rpc/api/rtos_driver_rpc.h b/modules/drivers/rpc/api/rtos_driver_rpc.h index a17f9e5b7..d1df817db 100644 --- a/modules/drivers/rpc/api/rtos_driver_rpc.h +++ b/modules/drivers/rpc/api/rtos_driver_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_DRIVER_RPC_H_ diff --git a/modules/drivers/rpc/api/rtos_rpc.h b/modules/drivers/rpc/api/rtos_rpc.h index 2508701fe..f965732e4 100644 --- a/modules/drivers/rpc/api/rtos_rpc.h +++ b/modules/drivers/rpc/api/rtos_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/drivers/rpc/src/rtos_rpc.c b/modules/drivers/rpc/src/rtos_rpc.c index 51a343743..c5cbcf93e 100644 --- a/modules/drivers/rpc/src/rtos_rpc.c +++ b/modules/drivers/rpc/src/rtos_rpc.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* Standard library headers */ diff --git a/modules/drivers/spi/api/rtos_spi_master.h b/modules/drivers/spi/api/rtos_spi_master.h index ba32ac60e..a8a7fec5a 100644 --- a/modules/drivers/spi/api/rtos_spi_master.h +++ b/modules/drivers/spi/api/rtos_spi_master.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_SPI_MASTER_H_ diff --git a/modules/drivers/spi/api/rtos_spi_master_rpc.h b/modules/drivers/spi/api/rtos_spi_master_rpc.h index 249f621de..4c2619da3 100644 --- a/modules/drivers/spi/api/rtos_spi_master_rpc.h +++ b/modules/drivers/spi/api/rtos_spi_master_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_SPI_MASTER_RPC_H_ diff --git a/modules/drivers/spi/api/rtos_spi_slave.h b/modules/drivers/spi/api/rtos_spi_slave.h index e5b3d1f06..4602c43be 100644 --- a/modules/drivers/spi/api/rtos_spi_slave.h +++ b/modules/drivers/spi/api/rtos_spi_slave.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_SPI_SLAVE_H_ diff --git a/modules/drivers/spi/src/rtos_spi_master.c b/modules/drivers/spi/src/rtos_spi_master.c index 166232a57..bce682e4e 100644 --- a/modules/drivers/spi/src/rtos_spi_master.c +++ b/modules/drivers/spi/src/rtos_spi_master.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/drivers/spi/src/rtos_spi_master_rpc.c b/modules/drivers/spi/src/rtos_spi_master_rpc.c index 53b0cbf4b..5d379fcb0 100644 --- a/modules/drivers/spi/src/rtos_spi_master_rpc.c +++ b/modules/drivers/spi/src/rtos_spi_master_rpc.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "rtos_rpc.h" diff --git a/modules/drivers/spi/src/rtos_spi_slave.c b/modules/drivers/spi/src/rtos_spi_slave.c index b26ac8b38..3e28b2b27 100644 --- a/modules/drivers/spi/src/rtos_spi_slave.c +++ b/modules/drivers/spi/src/rtos_spi_slave.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT RTOS_SPI diff --git a/modules/drivers/swmem/api/rtos_swmem.h b/modules/drivers/swmem/api/rtos_swmem.h index 5985a6409..3eb7053e3 100644 --- a/modules/drivers/swmem/api/rtos_swmem.h +++ b/modules/drivers/swmem/api/rtos_swmem.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_SWMEM_H_ diff --git a/modules/drivers/trace/FreeRTOS/ASCII/ascii_trace.c b/modules/drivers/trace/FreeRTOS/ASCII/ascii_trace.c index 63f5d038d..fcbb59522 100644 --- a/modules/drivers/trace/FreeRTOS/ASCII/ascii_trace.c +++ b/modules/drivers/trace/FreeRTOS/ASCII/ascii_trace.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "FreeRTOS.h" diff --git a/modules/drivers/trace/FreeRTOS/api/ascii_trace.h b/modules/drivers/trace/FreeRTOS/api/ascii_trace.h index a3b2c004d..5d245b64c 100644 --- a/modules/drivers/trace/FreeRTOS/api/ascii_trace.h +++ b/modules/drivers/trace/FreeRTOS/api/ascii_trace.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef TRACEMACRO_H_ diff --git a/modules/drivers/trace/FreeRTOS/api/xcore_trace.h b/modules/drivers/trace/FreeRTOS/api/xcore_trace.h index 2be57d70b..ceaf3f781 100644 --- a/modules/drivers/trace/FreeRTOS/api/xcore_trace.h +++ b/modules/drivers/trace/FreeRTOS/api/xcore_trace.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef XCORE_TRACE_H_ diff --git a/modules/drivers/uart/api/rtos_uart_tx_rpc.h b/modules/drivers/uart/api/rtos_uart_tx_rpc.h index dff862b96..b7b1cbe02 100644 --- a/modules/drivers/uart/api/rtos_uart_tx_rpc.h +++ b/modules/drivers/uart/api/rtos_uart_tx_rpc.h @@ -1,4 +1,4 @@ -// Copyright 2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_UART_TX_RPC_H_ diff --git a/modules/drivers/uart/src/rtos_uart_tx_rpc.c b/modules/drivers/uart/src/rtos_uart_tx_rpc.c index 697a598e7..448235ab4 100644 --- a/modules/drivers/uart/src/rtos_uart_tx_rpc.c +++ b/modules/drivers/uart/src/rtos_uart_tx_rpc.c @@ -1,4 +1,4 @@ -// Copyright 2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "rtos_rpc.h" diff --git a/modules/drivers/usb/api/rtos_usb.h b/modules/drivers/usb/api/rtos_usb.h index 440d12452..b6ecfe172 100644 --- a/modules/drivers/usb/api/rtos_usb.h +++ b/modules/drivers/usb/api/rtos_usb.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_USB_H_ diff --git a/modules/drivers/usb/src/rtos_usb.c b/modules/drivers/usb/src/rtos_usb.c index 60ce0ae30..d2d4bb4f3 100644 --- a/modules/drivers/usb/src/rtos_usb.c +++ b/modules/drivers/usb/src/rtos_usb.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT RTOS_USB diff --git a/modules/drivers/usb/src/xud_xfer_data.S b/modules/drivers/usb/src/xud_xfer_data.S index 51bc497d1..479ad8360 100644 --- a/modules/drivers/usb/src/xud_xfer_data.S +++ b/modules/drivers/usb/src/xud_xfer_data.S @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "XUD_USB_Defines.h" diff --git a/modules/drivers/usb/src/xud_xfer_data.h b/modules/drivers/usb/src/xud_xfer_data.h index cdbc3787b..5e1fb2b94 100644 --- a/modules/drivers/usb/src/xud_xfer_data.h +++ b/modules/drivers/usb/src/xud_xfer_data.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef XUD_XFER_DATA_H_ diff --git a/modules/osal/FreeRTOS/rtos_osal_event_group_port.c b/modules/osal/FreeRTOS/rtos_osal_event_group_port.c index a94463dab..6a10a9f81 100644 --- a/modules/osal/FreeRTOS/rtos_osal_event_group_port.c +++ b/modules/osal/FreeRTOS/rtos_osal_event_group_port.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/osal/FreeRTOS/rtos_osal_heap.c b/modules/osal/FreeRTOS/rtos_osal_heap.c index ea484dc69..795b0298d 100644 --- a/modules/osal/FreeRTOS/rtos_osal_heap.c +++ b/modules/osal/FreeRTOS/rtos_osal_heap.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/osal/FreeRTOS/rtos_osal_mutex_port.c b/modules/osal/FreeRTOS/rtos_osal_mutex_port.c index dc07337b2..530764fe8 100644 --- a/modules/osal/FreeRTOS/rtos_osal_mutex_port.c +++ b/modules/osal/FreeRTOS/rtos_osal_mutex_port.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/osal/FreeRTOS/rtos_osal_port.h b/modules/osal/FreeRTOS/rtos_osal_port.h index 236c0e621..dfbed9cc7 100644 --- a/modules/osal/FreeRTOS/rtos_osal_port.h +++ b/modules/osal/FreeRTOS/rtos_osal_port.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/osal/FreeRTOS/rtos_osal_queue_port.c b/modules/osal/FreeRTOS/rtos_osal_queue_port.c index 86069ed9d..8dad95bbc 100644 --- a/modules/osal/FreeRTOS/rtos_osal_queue_port.c +++ b/modules/osal/FreeRTOS/rtos_osal_queue_port.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/osal/FreeRTOS/rtos_osal_semaphore_port.c b/modules/osal/FreeRTOS/rtos_osal_semaphore_port.c index af4f8487f..16b0e1572 100644 --- a/modules/osal/FreeRTOS/rtos_osal_semaphore_port.c +++ b/modules/osal/FreeRTOS/rtos_osal_semaphore_port.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/osal/FreeRTOS/rtos_osal_time.c b/modules/osal/FreeRTOS/rtos_osal_time.c index 172a47606..8c998a034 100644 --- a/modules/osal/FreeRTOS/rtos_osal_time.c +++ b/modules/osal/FreeRTOS/rtos_osal_time.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /** diff --git a/modules/rtos_support/api/rtos_cores.h b/modules/rtos_support/api/rtos_cores.h index ea1cd424d..f8a33860a 100644 --- a/modules/rtos_support/api/rtos_cores.h +++ b/modules/rtos_support/api/rtos_cores.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_CORES_H_ diff --git a/modules/rtos_support/api/rtos_interrupt.h b/modules/rtos_support/api/rtos_interrupt.h index 51440171f..bf0d46fa1 100644 --- a/modules/rtos_support/api/rtos_interrupt.h +++ b/modules/rtos_support/api/rtos_interrupt.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_INTERRUPT_H_ diff --git a/modules/rtos_support/api/rtos_irq.h b/modules/rtos_support/api/rtos_irq.h index 701839d93..69fd0203f 100644 --- a/modules/rtos_support/api/rtos_irq.h +++ b/modules/rtos_support/api/rtos_irq.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_IRQ_H_ diff --git a/modules/rtos_support/api/rtos_locks.h b/modules/rtos_support/api/rtos_locks.h index 5689b7a58..6c69e3490 100644 --- a/modules/rtos_support/api/rtos_locks.h +++ b/modules/rtos_support/api/rtos_locks.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_LOCKS_H_ diff --git a/modules/rtos_support/api/rtos_macros.h b/modules/rtos_support/api/rtos_macros.h index 6e722f931..93465f7e6 100644 --- a/modules/rtos_support/api/rtos_macros.h +++ b/modules/rtos_support/api/rtos_macros.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_MACROS_H_ diff --git a/modules/rtos_support/api/rtos_printf.h b/modules/rtos_support/api/rtos_printf.h index abc3e4786..0fc46d0a3 100644 --- a/modules/rtos_support/api/rtos_printf.h +++ b/modules/rtos_support/api/rtos_printf.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef _rtos_printf_h_ diff --git a/modules/rtos_support/api/rtos_support.h b/modules/rtos_support/api/rtos_support.h index 94ec72317..d0621bcbc 100644 --- a/modules/rtos_support/api/rtos_support.h +++ b/modules/rtos_support/api/rtos_support.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_SUPPORT_H_ diff --git a/modules/rtos_support/api/rtos_time.h b/modules/rtos_support/api/rtos_time.h index 91be21d9d..d913acf8f 100644 --- a/modules/rtos_support/api/rtos_time.h +++ b/modules/rtos_support/api/rtos_time.h @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_TIME_H_ diff --git a/modules/rtos_support/src/rtos_cores.c b/modules/rtos_support/src/rtos_cores.c index 67325f16e..e40d3e7f5 100644 --- a/modules/rtos_support/src/rtos_cores.c +++ b/modules/rtos_support/src/rtos_cores.c @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/rtos_support/src/rtos_interrupt_impl.h b/modules/rtos_support/src/rtos_interrupt_impl.h index 826380039..37e250145 100644 --- a/modules/rtos_support/src/rtos_interrupt_impl.h +++ b/modules/rtos_support/src/rtos_interrupt_impl.h @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* diff --git a/modules/rtos_support/src/rtos_irq.c b/modules/rtos_support/src/rtos_irq.c index 7da4e3477..b7434b87a 100644 --- a/modules/rtos_support/src/rtos_irq.c +++ b/modules/rtos_support/src/rtos_irq.c @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/rtos_support/src/rtos_locks.c b/modules/rtos_support/src/rtos_locks.c index dbe05a1b7..5d22d4480 100644 --- a/modules/rtos_support/src/rtos_locks.c +++ b/modules/rtos_support/src/rtos_locks.c @@ -1,4 +1,4 @@ -// Copyright 2019-2021 XMOS LIMITED. +// Copyright 2019-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "rtos_support.h" diff --git a/modules/rtos_support/src/rtos_time.c b/modules/rtos_support/src/rtos_time.c index e23bae100..70e62b22d 100644 --- a/modules/rtos_support/src/rtos_time.c +++ b/modules/rtos_support/src/rtos_time.c @@ -1,4 +1,4 @@ -// Copyright 2020-2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "rtos_time.h" diff --git a/modules/sw_services/concurrency_support/api/concurrency_support.h b/modules/sw_services/concurrency_support/api/concurrency_support.h index ebf2a02c6..5501e3fbf 100644 --- a/modules/sw_services/concurrency_support/api/concurrency_support.h +++ b/modules/sw_services/concurrency_support/api/concurrency_support.h @@ -1,5 +1,5 @@ -// Copyright 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef CONCURRENCY_SUPPORT_H_ #define CONCURRENCY_SUPPORT_H_ diff --git a/modules/sw_services/concurrency_support/api/mrsw_lock.h b/modules/sw_services/concurrency_support/api/mrsw_lock.h index 53bed9d56..567744c53 100644 --- a/modules/sw_services/concurrency_support/api/mrsw_lock.h +++ b/modules/sw_services/concurrency_support/api/mrsw_lock.h @@ -1,5 +1,5 @@ -// Copyright 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef MRSW_LOCK_H_ #define MRSW_LOCK_H_ diff --git a/modules/sw_services/device_control/api/device_control.h b/modules/sw_services/device_control/api/device_control.h index 513af0cc5..f658eb27f 100644 --- a/modules/sw_services/device_control/api/device_control.h +++ b/modules/sw_services/device_control/api/device_control.h @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef DEVICE_CONTROL_H_ diff --git a/modules/sw_services/device_control/api/device_control_shared.h b/modules/sw_services/device_control/api/device_control_shared.h index 37374d989..a66f87b76 100644 --- a/modules/sw_services/device_control/api/device_control_shared.h +++ b/modules/sw_services/device_control/api/device_control_shared.h @@ -1,4 +1,4 @@ -// Copyright 2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef DEVICE_CONTROL_SHARED_H_ diff --git a/modules/sw_services/device_control/host/control_host_support.h b/modules/sw_services/device_control/host/control_host_support.h index ef3b39ad2..ae95ca5c9 100644 --- a/modules/sw_services/device_control/host/control_host_support.h +++ b/modules/sw_services/device_control/host/control_host_support.h @@ -1,4 +1,4 @@ -// Copyright 2016-2021 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef __control_host_support_h__ #define __control_host_support_h__ diff --git a/modules/sw_services/device_control/host/device_access_i2c_rpi.c b/modules/sw_services/device_control/host/device_access_i2c_rpi.c index a90629034..fa8167ce2 100644 --- a/modules/sw_services/device_control/host/device_access_i2c_rpi.c +++ b/modules/sw_services/device_control/host/device_access_i2c_rpi.c @@ -1,4 +1,4 @@ -// Copyright 2016-2022 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #if USE_I2C && RPI diff --git a/modules/sw_services/device_control/host/device_access_spi_rpi.c b/modules/sw_services/device_control/host/device_access_spi_rpi.c index 1198dd8d8..4a92aa9a2 100644 --- a/modules/sw_services/device_control/host/device_access_spi_rpi.c +++ b/modules/sw_services/device_control/host/device_access_spi_rpi.c @@ -1,4 +1,4 @@ -// Copyright 2017-2022 XMOS LIMITED. +// Copyright 2017-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #if USE_SPI && RPI diff --git a/modules/sw_services/device_control/host/device_access_usb.c b/modules/sw_services/device_control/host/device_access_usb.c index 47ae53cc7..9e4a4e1b5 100644 --- a/modules/sw_services/device_control/host/device_access_usb.c +++ b/modules/sw_services/device_control/host/device_access_usb.c @@ -1,4 +1,4 @@ -// Copyright 2016-2021 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #if USE_USB #include diff --git a/modules/sw_services/device_control/host/device_control_host.h b/modules/sw_services/device_control/host/device_control_host.h index 4d57d5587..20b9f7081 100644 --- a/modules/sw_services/device_control/host/device_control_host.h +++ b/modules/sw_services/device_control/host/device_control_host.h @@ -1,4 +1,4 @@ -// Copyright 2016-2021 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef __control_host_h__ #define __control_host_h__ diff --git a/modules/sw_services/device_control/host/util.c b/modules/sw_services/device_control/host/util.c index f7d810403..b40da573c 100644 --- a/modules/sw_services/device_control/host/util.c +++ b/modules/sw_services/device_control/host/util.c @@ -1,4 +1,4 @@ -// Copyright 2016-2021 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #ifdef _WIN32 diff --git a/modules/sw_services/device_control/host/util.h b/modules/sw_services/device_control/host/util.h index a083af3ae..489d389b8 100644 --- a/modules/sw_services/device_control/host/util.h +++ b/modules/sw_services/device_control/host/util.h @@ -1,4 +1,4 @@ -// Copyright 2016-2021 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef __util_h__ #define __util_h__ diff --git a/modules/sw_services/device_control/src/device_control.c b/modules/sw_services/device_control/src/device_control.c index 9bb9ae093..16295b907 100644 --- a/modules/sw_services/device_control/src/device_control.c +++ b/modules/sw_services/device_control/src/device_control.c @@ -1,4 +1,4 @@ -// Copyright 2016 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT CONTROL diff --git a/modules/sw_services/device_control/src/resource_table.c b/modules/sw_services/device_control/src/resource_table.c index 7351fcecf..9f26a7fe1 100644 --- a/modules/sw_services/device_control/src/resource_table.c +++ b/modules/sw_services/device_control/src/resource_table.c @@ -1,4 +1,4 @@ -// Copyright 2016 XMOS LIMITED. +// Copyright 2016-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT RESOURCE_TABLE diff --git a/modules/sw_services/device_control/transport/i2c/device_control_i2c.h b/modules/sw_services/device_control/transport/i2c/device_control_i2c.h index 1d3d2396b..2aef670b5 100644 --- a/modules/sw_services/device_control/transport/i2c/device_control_i2c.h +++ b/modules/sw_services/device_control/transport/i2c/device_control_i2c.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021-2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef I2C_DEVICE_CONTROL_H_ #define I2C_DEVICE_CONTROL_H_ diff --git a/modules/sw_services/device_control/transport/spi/device_control_spi.c b/modules/sw_services/device_control/transport/spi/device_control_spi.c index b9f01be23..bd2076ff0 100644 --- a/modules/sw_services/device_control/transport/spi/device_control_spi.c +++ b/modules/sw_services/device_control/transport/spi/device_control_spi.c @@ -1,3 +1,5 @@ +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #include "rtos_spi_slave.h" diff --git a/modules/sw_services/device_control/transport/spi/device_control_spi.h b/modules/sw_services/device_control/transport/spi/device_control_spi.h index f201657aa..827129b6d 100644 --- a/modules/sw_services/device_control/transport/spi/device_control_spi.h +++ b/modules/sw_services/device_control/transport/spi/device_control_spi.h @@ -1,3 +1,5 @@ +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef SPI_DEVICE_CONTROL_H_ #define SPI_DEVICE_CONTROL_H_ diff --git a/modules/sw_services/device_control/transport/usb/device_control_usb.c b/modules/sw_services/device_control/transport/usb/device_control_usb.c index 8e8bd7cbc..0fbef824b 100644 --- a/modules/sw_services/device_control/transport/usb/device_control_usb.c +++ b/modules/sw_services/device_control/transport/usb/device_control_usb.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/sw_services/device_control/transport/usb/device_control_usb.h b/modules/sw_services/device_control/transport/usb/device_control_usb.h index 0b9158efc..5a806259e 100644 --- a/modules/sw_services/device_control/transport/usb/device_control_usb.h +++ b/modules/sw_services/device_control/transport/usb/device_control_usb.h @@ -1,5 +1,5 @@ -// Copyright (c) 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef USB_DEVICE_CONTROL_H_ #define USB_DEVICE_CONTROL_H_ diff --git a/modules/sw_services/dhcpd/FreeRTOS/berkeley_compat.h b/modules/sw_services/dhcpd/FreeRTOS/berkeley_compat.h index 481e487d5..823f4d4af 100644 --- a/modules/sw_services/dhcpd/FreeRTOS/berkeley_compat.h +++ b/modules/sw_services/dhcpd/FreeRTOS/berkeley_compat.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef BERKELEY_COMPAT_H_ diff --git a/modules/sw_services/dhcpd/FreeRTOS/dhcpd.c b/modules/sw_services/dhcpd/FreeRTOS/dhcpd.c index 92664bef3..d987c1339 100644 --- a/modules/sw_services/dhcpd/FreeRTOS/dhcpd.c +++ b/modules/sw_services/dhcpd/FreeRTOS/dhcpd.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT DHCPD diff --git a/modules/sw_services/dhcpd/api/dhcpd.h b/modules/sw_services/dhcpd/api/dhcpd.h index e8a20fc57..4bea1913d 100644 --- a/modules/sw_services/dhcpd/api/dhcpd.h +++ b/modules/sw_services/dhcpd/api/dhcpd.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef DHCPD_H_ diff --git a/modules/sw_services/fatfs/FreeRTOS/ffconf.h b/modules/sw_services/fatfs/FreeRTOS/ffconf.h index e2ea2a5c7..34c7f43da 100644 --- a/modules/sw_services/fatfs/FreeRTOS/ffconf.h +++ b/modules/sw_services/fatfs/FreeRTOS/ffconf.h @@ -1,381 +1,383 @@ -/*---------------------------------------------------------------------------/ -/ FatFs Functional Configurations -/---------------------------------------------------------------------------*/ - -#define FFCONF_DEF 86606 /* Revision ID */ - -/*---------------------------------------------------------------------------/ -/ Function Configurations -/---------------------------------------------------------------------------*/ - -#if __has_include("ff_appconf.h") -/* Allow the application to override any defaults */ -#include "ff_appconf.h" -#endif - -#ifndef FF_FS_READONLY -#define FF_FS_READONLY 0 -#endif -/* This option switches read-only configuration. (0:Read/Write or 1:Read-only) -/ Read-only configuration removes writing API functions, f_write(), f_sync(), -/ f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree() -/ and optional writing functions as well. */ - - -#ifndef FF_FS_MINIMIZE -#define FF_FS_MINIMIZE 0 -#endif -/* This option defines minimization level to remove some basic API functions. -/ -/ 0: Basic functions are fully enabled. -/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename() -/ are removed. -/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1. -/ 3: f_lseek() function is removed in addition to 2. */ - - -#ifndef FF_USE_STRFUNC -#define FF_USE_STRFUNC 0 -#endif -/* This option switches string functions, f_gets(), f_putc(), f_puts() and f_printf(). -/ -/ 0: Disable string functions. -/ 1: Enable without LF-CRLF conversion. -/ 2: Enable with LF-CRLF conversion. */ - - -#ifndef FF_USE_FIND -#define FF_USE_FIND 0 -#endif -/* This option switches filtered directory read functions, f_findfirst() and -/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */ - - -#ifndef FF_USE_MKFS -#define FF_USE_MKFS 0 -#endif -/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */ - - -#ifndef FF_USE_FASTSEEK -#define FF_USE_FASTSEEK 0 -#endif -/* This option switches fast seek function. (0:Disable or 1:Enable) */ - - -#ifndef FF_USE_EXPAND -#define FF_USE_EXPAND 0 -#endif -/* This option switches f_expand function. (0:Disable or 1:Enable) */ - - -#ifndef FF_USE_CHMOD -#define FF_USE_CHMOD 0 -#endif -/* This option switches attribute manipulation functions, f_chmod() and f_utime(). -/ (0:Disable or 1:Enable) Also FF_FS_READONLY needs to be 0 to enable this option. */ - - -#ifndef FF_USE_LABEL -#define FF_USE_LABEL 0 -#endif -/* This option switches volume label functions, f_getlabel() and f_setlabel(). -/ (0:Disable or 1:Enable) */ - - -#ifndef FF_USE_FORWARD -#define FF_USE_FORWARD 0 -#endif -/* This option switches f_forward() function. (0:Disable or 1:Enable) */ - - -/*---------------------------------------------------------------------------/ -/ Locale and Namespace Configurations -/---------------------------------------------------------------------------*/ - -#ifndef FF_CODE_PAGE -#define FF_CODE_PAGE 932 -#endif -/* This option specifies the OEM code page to be used on the target system. -/ Incorrect code page setting can cause a file open failure. -/ -/ 437 - U.S. -/ 720 - Arabic -/ 737 - Greek -/ 771 - KBL -/ 775 - Baltic -/ 850 - Latin 1 -/ 852 - Latin 2 -/ 855 - Cyrillic -/ 857 - Turkish -/ 860 - Portuguese -/ 861 - Icelandic -/ 862 - Hebrew -/ 863 - Canadian French -/ 864 - Arabic -/ 865 - Nordic -/ 866 - Russian -/ 869 - Greek 2 -/ 932 - Japanese (DBCS) -/ 936 - Simplified Chinese (DBCS) -/ 949 - Korean (DBCS) -/ 950 - Traditional Chinese (DBCS) -/ 0 - Include all code pages above and configured by f_setcp() -*/ - - -#ifndef FF_USE_LFN -#define FF_USE_LFN 0 -#endif -#ifndef FF_MAX_LFN -#define FF_MAX_LFN 255 -#endif -/* The FF_USE_LFN switches the support for LFN (long file name). -/ -/ 0: Disable LFN. FF_MAX_LFN has no effect. -/ 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe. -/ 2: Enable LFN with dynamic working buffer on the STACK. -/ 3: Enable LFN with dynamic working buffer on the HEAP. -/ -/ To enable the LFN, ffunicode.c needs to be added to the project. The LFN function -/ requiers certain internal working buffer occupies (FF_MAX_LFN + 1) * 2 bytes and -/ additional (FF_MAX_LFN + 44) / 15 * 32 bytes when exFAT is enabled. -/ The FF_MAX_LFN defines size of the working buffer in UTF-16 code unit and it can -/ be in range of 12 to 255. It is recommended to be set it 255 to fully support LFN -/ specification. -/ When use stack for the working buffer, take care on stack overflow. When use heap -/ memory for the working buffer, memory management functions, ff_memalloc() and -/ ff_memfree() exemplified in ffsystem.c, need to be added to the project. */ - - -#ifndef FF_LFN_UNICODE -#define FF_LFN_UNICODE 0 -#endif -/* This option switches the character encoding on the API when LFN is enabled. -/ -/ 0: ANSI/OEM in current CP (TCHAR = char) -/ 1: Unicode in UTF-16 (TCHAR = WCHAR) -/ 2: Unicode in UTF-8 (TCHAR = char) -/ 3: Unicode in UTF-32 (TCHAR = DWORD) -/ -/ Also behavior of string I/O functions will be affected by this option. -/ When LFN is not enabled, this option has no effect. */ - - -#ifndef FF_LFN_BUF -#define FF_LFN_BUF 255 -#endif -#ifndef FF_SFN_BUF -#define FF_SFN_BUF 12 -#endif -/* This set of options defines size of file name members in the FILINFO structure -/ which is used to read out directory items. These values should be suffcient for -/ the file names to read. The maximum possible length of the read file name depends -/ on character encoding. When LFN is not enabled, these options have no effect. */ - - -#ifndef FF_STRF_ENCODE -#define FF_STRF_ENCODE 3 -#endif -/* When FF_LFN_UNICODE >= 1 with LFN enabled, string I/O functions, f_gets(), -/ f_putc(), f_puts and f_printf() convert the character encoding in it. -/ This option selects assumption of character encoding ON THE FILE to be -/ read/written via those functions. -/ -/ 0: ANSI/OEM in current CP -/ 1: Unicode in UTF-16LE -/ 2: Unicode in UTF-16BE -/ 3: Unicode in UTF-8 -*/ - - -#ifndef FF_FS_RPATH -#define FF_FS_RPATH 0 -#endif -/* This option configures support for relative path. -/ -/ 0: Disable relative path and remove related functions. -/ 1: Enable relative path. f_chdir() and f_chdrive() are available. -/ 2: f_getcwd() function is available in addition to 1. -*/ - - -/*---------------------------------------------------------------------------/ -/ Drive/Volume Configurations -/---------------------------------------------------------------------------*/ - -#ifndef FF_VOLUMES -#define FF_VOLUMES 1 -#endif -/* Number of volumes (logical drives) to be used. (1-10) */ - - -#ifndef FF_STR_VOLUME_ID -#define FF_STR_VOLUME_ID 2 -#endif -#ifndef FF_VOLUME_STRS -#define FF_VOLUME_STRS "flash" -#endif -/* FF_STR_VOLUME_ID switches support for volume ID in arbitrary strings. -/ When FF_STR_VOLUME_ID is set to 1 or 2, arbitrary strings can be used as drive -/ number in the path name. FF_VOLUME_STRS defines the volume ID strings for each -/ logical drives. Number of items must not be less than FF_VOLUMES. Valid -/ characters for the volume ID strings are A-Z, a-z and 0-9, however, they are -/ compared in case-insensitive. If FF_STR_VOLUME_ID >= 1 and FF_VOLUME_STRS is -/ not defined, a user defined volume string table needs to be defined as: -/ -/ const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",... -*/ - - -#ifndef FF_MULTI_PARTITION -#define FF_MULTI_PARTITION 0 -#endif -/* This option switches support for multiple volumes on the physical drive. -/ By default (0), each logical drive number is bound to the same physical drive -/ number and only an FAT volume found on the physical drive will be mounted. -/ When this function is enabled (1), each logical drive number can be bound to -/ arbitrary physical drive and partition listed in the VolToPart[]. Also f_fdisk() -/ funciton will be available. */ - - -#ifndef FF_MIN_SS -#define FF_MIN_SS 4096 -#endif -#ifndef FF_MAX_SS -#define FF_MAX_SS 4096 -#endif -/* This set of options configures the range of sector size to be supported. (512, -/ 1024, 2048 or 4096) Always set both 512 for most systems, generic memory card and -/ harddisk. But a larger value may be required for on-board flash memory and some -/ type of optical media. When FF_MAX_SS is larger than FF_MIN_SS, FatFs is configured -/ for variable sector size mode and disk_ioctl() function needs to implement -/ GET_SECTOR_SIZE command. */ - - -#ifndef FF_LBA64 -#define FF_LBA64 0 -#endif -/* This option switches support for 64-bit LBA. (0:Disable or 1:Enable) -/ To enable the 64-bit LBA, also exFAT needs to be enabled. (FF_FS_EXFAT == 1) */ - - -#ifndef FF_MIN_GPT -#define FF_MIN_GPT 0x100000000 -#endif -/* Minimum number of sectors to switch GPT format to create partition in f_mkfs and -/ f_fdisk function. 0x100000000 max. This option has no effect when FF_LBA64 == 0. */ - - -#ifndef FF_USE_TRIM -#define FF_USE_TRIM 0 -#endif -/* This option switches support for ATA-TRIM. (0:Disable or 1:Enable) -/ To enable Trim function, also CTRL_TRIM command should be implemented to the -/ disk_ioctl() function. */ - - - -/*---------------------------------------------------------------------------/ -/ System Configurations -/---------------------------------------------------------------------------*/ - -#ifndef FF_FS_TINY -#define FF_FS_TINY 0 -#endif -/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny) -/ At the tiny configuration, size of file object (FIL) is shrinked FF_MAX_SS bytes. -/ Instead of private sector buffer eliminated from the file object, common sector -/ buffer in the filesystem object (FATFS) is used for the file data transfer. */ - - -#ifndef FF_FS_EXFAT -#define FF_FS_EXFAT 0 -#endif -/* This option switches support for exFAT filesystem. (0:Disable or 1:Enable) -/ To enable exFAT, also LFN needs to be enabled. (FF_USE_LFN >= 1) -/ Note that enabling exFAT discards ANSI C (C89) compatibility. */ - - -#ifndef FF_FS_NORTC -#define FF_FS_NORTC 0 -#endif -#ifndef FF_NORTC_MON -#define FF_NORTC_MON 1 -#endif -#ifndef FF_NORTC_MDAY -#define FF_NORTC_MDAY 1 -#endif -#ifndef FF_NORTC_YEAR -#define FF_NORTC_YEAR 2020 -#endif -/* The option FF_FS_NORTC switches timestamp functiton. If the system does not have -/ any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable -/ the timestamp function. Every object modified by FatFs will have a fixed timestamp -/ defined by FF_NORTC_MON, FF_NORTC_MDAY and FF_NORTC_YEAR in local time. -/ To enable timestamp function (FF_FS_NORTC = 0), get_fattime() function need to be -/ added to the project to read current time form real-time clock. FF_NORTC_MON, -/ FF_NORTC_MDAY and FF_NORTC_YEAR have no effect. -/ These options have no effect in read-only configuration (FF_FS_READONLY = 1). */ - - -#ifndef FF_FS_NOFSINFO -#define FF_FS_NOFSINFO 0 -#endif -/* If you need to know correct free space on the FAT32 volume, set bit 0 of this -/ option, and f_getfree() function at first time after volume mount will force -/ a full FAT scan. Bit 1 controls the use of last allocated cluster number. -/ -/ bit0=0: Use free cluster count in the FSINFO if available. -/ bit0=1: Do not trust free cluster count in the FSINFO. -/ bit1=0: Use last allocated cluster number in the FSINFO if available. -/ bit1=1: Do not trust last allocated cluster number in the FSINFO. -*/ - - -#ifndef FF_FS_LOCK -#define FF_FS_LOCK 0 -#endif -/* The option FF_FS_LOCK switches file lock function to control duplicated file open -/ and illegal operation to open objects. This option must be 0 when FF_FS_READONLY -/ is 1. -/ -/ 0: Disable file lock function. To avoid volume corruption, application program -/ should avoid illegal open, remove and rename to the open objects. -/ >0: Enable file lock function. The value defines how many files/sub-directories -/ can be opened simultaneously under file lock control. Note that the file -/ lock control is independent of re-entrancy. */ - - -#ifndef FF_FS_REENTRANT -#define FF_FS_REENTRANT 1 -#endif -#if FF_FS_REENTRANT -#include "FreeRTOS.h" -#include "semphr.h" -#define FF_SYNC_t SemaphoreHandle_t -#endif -#ifndef FF_FS_TIMEOUT -#define FF_FS_TIMEOUT 1000 -#endif - -/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs -/ module itself. Note that regardless of this option, file access to different -/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs() -/ and f_fdisk() function, are always not re-entrant. Only file/directory access -/ to the same volume is under control of this function. -/ -/ 0: Disable re-entrancy. FF_FS_TIMEOUT and FF_SYNC_t have no effect. -/ 1: Enable re-entrancy. Also user provided synchronization handlers, -/ ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj() -/ function, must be added to the project. Samples are available in -/ option/syscall.c. -/ -/ The FF_FS_TIMEOUT defines timeout period in unit of time tick. -/ The FF_SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*, -/ SemaphoreHandle_t and etc. A header file for O/S definitions needs to be -/ included somewhere in the scope of ff.h. */ - - - -/*--- End of configuration options ---*/ +// Copyright 2020-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +/*---------------------------------------------------------------------------/ +/ FatFs Functional Configurations +/---------------------------------------------------------------------------*/ + +#define FFCONF_DEF 86606 /* Revision ID */ + +/*---------------------------------------------------------------------------/ +/ Function Configurations +/---------------------------------------------------------------------------*/ + +#if __has_include("ff_appconf.h") +/* Allow the application to override any defaults */ +#include "ff_appconf.h" +#endif + +#ifndef FF_FS_READONLY +#define FF_FS_READONLY 0 +#endif +/* This option switches read-only configuration. (0:Read/Write or 1:Read-only) +/ Read-only configuration removes writing API functions, f_write(), f_sync(), +/ f_unlink(), f_mkdir(), f_chmod(), f_rename(), f_truncate(), f_getfree() +/ and optional writing functions as well. */ + + +#ifndef FF_FS_MINIMIZE +#define FF_FS_MINIMIZE 0 +#endif +/* This option defines minimization level to remove some basic API functions. +/ +/ 0: Basic functions are fully enabled. +/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename() +/ are removed. +/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1. +/ 3: f_lseek() function is removed in addition to 2. */ + + +#ifndef FF_USE_STRFUNC +#define FF_USE_STRFUNC 0 +#endif +/* This option switches string functions, f_gets(), f_putc(), f_puts() and f_printf(). +/ +/ 0: Disable string functions. +/ 1: Enable without LF-CRLF conversion. +/ 2: Enable with LF-CRLF conversion. */ + + +#ifndef FF_USE_FIND +#define FF_USE_FIND 0 +#endif +/* This option switches filtered directory read functions, f_findfirst() and +/ f_findnext(). (0:Disable, 1:Enable 2:Enable with matching altname[] too) */ + + +#ifndef FF_USE_MKFS +#define FF_USE_MKFS 0 +#endif +/* This option switches f_mkfs() function. (0:Disable or 1:Enable) */ + + +#ifndef FF_USE_FASTSEEK +#define FF_USE_FASTSEEK 0 +#endif +/* This option switches fast seek function. (0:Disable or 1:Enable) */ + + +#ifndef FF_USE_EXPAND +#define FF_USE_EXPAND 0 +#endif +/* This option switches f_expand function. (0:Disable or 1:Enable) */ + + +#ifndef FF_USE_CHMOD +#define FF_USE_CHMOD 0 +#endif +/* This option switches attribute manipulation functions, f_chmod() and f_utime(). +/ (0:Disable or 1:Enable) Also FF_FS_READONLY needs to be 0 to enable this option. */ + + +#ifndef FF_USE_LABEL +#define FF_USE_LABEL 0 +#endif +/* This option switches volume label functions, f_getlabel() and f_setlabel(). +/ (0:Disable or 1:Enable) */ + + +#ifndef FF_USE_FORWARD +#define FF_USE_FORWARD 0 +#endif +/* This option switches f_forward() function. (0:Disable or 1:Enable) */ + + +/*---------------------------------------------------------------------------/ +/ Locale and Namespace Configurations +/---------------------------------------------------------------------------*/ + +#ifndef FF_CODE_PAGE +#define FF_CODE_PAGE 932 +#endif +/* This option specifies the OEM code page to be used on the target system. +/ Incorrect code page setting can cause a file open failure. +/ +/ 437 - U.S. +/ 720 - Arabic +/ 737 - Greek +/ 771 - KBL +/ 775 - Baltic +/ 850 - Latin 1 +/ 852 - Latin 2 +/ 855 - Cyrillic +/ 857 - Turkish +/ 860 - Portuguese +/ 861 - Icelandic +/ 862 - Hebrew +/ 863 - Canadian French +/ 864 - Arabic +/ 865 - Nordic +/ 866 - Russian +/ 869 - Greek 2 +/ 932 - Japanese (DBCS) +/ 936 - Simplified Chinese (DBCS) +/ 949 - Korean (DBCS) +/ 950 - Traditional Chinese (DBCS) +/ 0 - Include all code pages above and configured by f_setcp() +*/ + + +#ifndef FF_USE_LFN +#define FF_USE_LFN 0 +#endif +#ifndef FF_MAX_LFN +#define FF_MAX_LFN 255 +#endif +/* The FF_USE_LFN switches the support for LFN (long file name). +/ +/ 0: Disable LFN. FF_MAX_LFN has no effect. +/ 1: Enable LFN with static working buffer on the BSS. Always NOT thread-safe. +/ 2: Enable LFN with dynamic working buffer on the STACK. +/ 3: Enable LFN with dynamic working buffer on the HEAP. +/ +/ To enable the LFN, ffunicode.c needs to be added to the project. The LFN function +/ requiers certain internal working buffer occupies (FF_MAX_LFN + 1) * 2 bytes and +/ additional (FF_MAX_LFN + 44) / 15 * 32 bytes when exFAT is enabled. +/ The FF_MAX_LFN defines size of the working buffer in UTF-16 code unit and it can +/ be in range of 12 to 255. It is recommended to be set it 255 to fully support LFN +/ specification. +/ When use stack for the working buffer, take care on stack overflow. When use heap +/ memory for the working buffer, memory management functions, ff_memalloc() and +/ ff_memfree() exemplified in ffsystem.c, need to be added to the project. */ + + +#ifndef FF_LFN_UNICODE +#define FF_LFN_UNICODE 0 +#endif +/* This option switches the character encoding on the API when LFN is enabled. +/ +/ 0: ANSI/OEM in current CP (TCHAR = char) +/ 1: Unicode in UTF-16 (TCHAR = WCHAR) +/ 2: Unicode in UTF-8 (TCHAR = char) +/ 3: Unicode in UTF-32 (TCHAR = DWORD) +/ +/ Also behavior of string I/O functions will be affected by this option. +/ When LFN is not enabled, this option has no effect. */ + + +#ifndef FF_LFN_BUF +#define FF_LFN_BUF 255 +#endif +#ifndef FF_SFN_BUF +#define FF_SFN_BUF 12 +#endif +/* This set of options defines size of file name members in the FILINFO structure +/ which is used to read out directory items. These values should be suffcient for +/ the file names to read. The maximum possible length of the read file name depends +/ on character encoding. When LFN is not enabled, these options have no effect. */ + + +#ifndef FF_STRF_ENCODE +#define FF_STRF_ENCODE 3 +#endif +/* When FF_LFN_UNICODE >= 1 with LFN enabled, string I/O functions, f_gets(), +/ f_putc(), f_puts and f_printf() convert the character encoding in it. +/ This option selects assumption of character encoding ON THE FILE to be +/ read/written via those functions. +/ +/ 0: ANSI/OEM in current CP +/ 1: Unicode in UTF-16LE +/ 2: Unicode in UTF-16BE +/ 3: Unicode in UTF-8 +*/ + + +#ifndef FF_FS_RPATH +#define FF_FS_RPATH 0 +#endif +/* This option configures support for relative path. +/ +/ 0: Disable relative path and remove related functions. +/ 1: Enable relative path. f_chdir() and f_chdrive() are available. +/ 2: f_getcwd() function is available in addition to 1. +*/ + + +/*---------------------------------------------------------------------------/ +/ Drive/Volume Configurations +/---------------------------------------------------------------------------*/ + +#ifndef FF_VOLUMES +#define FF_VOLUMES 1 +#endif +/* Number of volumes (logical drives) to be used. (1-10) */ + + +#ifndef FF_STR_VOLUME_ID +#define FF_STR_VOLUME_ID 2 +#endif +#ifndef FF_VOLUME_STRS +#define FF_VOLUME_STRS "flash" +#endif +/* FF_STR_VOLUME_ID switches support for volume ID in arbitrary strings. +/ When FF_STR_VOLUME_ID is set to 1 or 2, arbitrary strings can be used as drive +/ number in the path name. FF_VOLUME_STRS defines the volume ID strings for each +/ logical drives. Number of items must not be less than FF_VOLUMES. Valid +/ characters for the volume ID strings are A-Z, a-z and 0-9, however, they are +/ compared in case-insensitive. If FF_STR_VOLUME_ID >= 1 and FF_VOLUME_STRS is +/ not defined, a user defined volume string table needs to be defined as: +/ +/ const char* VolumeStr[FF_VOLUMES] = {"ram","flash","sd","usb",... +*/ + + +#ifndef FF_MULTI_PARTITION +#define FF_MULTI_PARTITION 0 +#endif +/* This option switches support for multiple volumes on the physical drive. +/ By default (0), each logical drive number is bound to the same physical drive +/ number and only an FAT volume found on the physical drive will be mounted. +/ When this function is enabled (1), each logical drive number can be bound to +/ arbitrary physical drive and partition listed in the VolToPart[]. Also f_fdisk() +/ funciton will be available. */ + + +#ifndef FF_MIN_SS +#define FF_MIN_SS 4096 +#endif +#ifndef FF_MAX_SS +#define FF_MAX_SS 4096 +#endif +/* This set of options configures the range of sector size to be supported. (512, +/ 1024, 2048 or 4096) Always set both 512 for most systems, generic memory card and +/ harddisk. But a larger value may be required for on-board flash memory and some +/ type of optical media. When FF_MAX_SS is larger than FF_MIN_SS, FatFs is configured +/ for variable sector size mode and disk_ioctl() function needs to implement +/ GET_SECTOR_SIZE command. */ + + +#ifndef FF_LBA64 +#define FF_LBA64 0 +#endif +/* This option switches support for 64-bit LBA. (0:Disable or 1:Enable) +/ To enable the 64-bit LBA, also exFAT needs to be enabled. (FF_FS_EXFAT == 1) */ + + +#ifndef FF_MIN_GPT +#define FF_MIN_GPT 0x100000000 +#endif +/* Minimum number of sectors to switch GPT format to create partition in f_mkfs and +/ f_fdisk function. 0x100000000 max. This option has no effect when FF_LBA64 == 0. */ + + +#ifndef FF_USE_TRIM +#define FF_USE_TRIM 0 +#endif +/* This option switches support for ATA-TRIM. (0:Disable or 1:Enable) +/ To enable Trim function, also CTRL_TRIM command should be implemented to the +/ disk_ioctl() function. */ + + + +/*---------------------------------------------------------------------------/ +/ System Configurations +/---------------------------------------------------------------------------*/ + +#ifndef FF_FS_TINY +#define FF_FS_TINY 0 +#endif +/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny) +/ At the tiny configuration, size of file object (FIL) is shrinked FF_MAX_SS bytes. +/ Instead of private sector buffer eliminated from the file object, common sector +/ buffer in the filesystem object (FATFS) is used for the file data transfer. */ + + +#ifndef FF_FS_EXFAT +#define FF_FS_EXFAT 0 +#endif +/* This option switches support for exFAT filesystem. (0:Disable or 1:Enable) +/ To enable exFAT, also LFN needs to be enabled. (FF_USE_LFN >= 1) +/ Note that enabling exFAT discards ANSI C (C89) compatibility. */ + + +#ifndef FF_FS_NORTC +#define FF_FS_NORTC 0 +#endif +#ifndef FF_NORTC_MON +#define FF_NORTC_MON 1 +#endif +#ifndef FF_NORTC_MDAY +#define FF_NORTC_MDAY 1 +#endif +#ifndef FF_NORTC_YEAR +#define FF_NORTC_YEAR 2020 +#endif +/* The option FF_FS_NORTC switches timestamp functiton. If the system does not have +/ any RTC function or valid timestamp is not needed, set FF_FS_NORTC = 1 to disable +/ the timestamp function. Every object modified by FatFs will have a fixed timestamp +/ defined by FF_NORTC_MON, FF_NORTC_MDAY and FF_NORTC_YEAR in local time. +/ To enable timestamp function (FF_FS_NORTC = 0), get_fattime() function need to be +/ added to the project to read current time form real-time clock. FF_NORTC_MON, +/ FF_NORTC_MDAY and FF_NORTC_YEAR have no effect. +/ These options have no effect in read-only configuration (FF_FS_READONLY = 1). */ + + +#ifndef FF_FS_NOFSINFO +#define FF_FS_NOFSINFO 0 +#endif +/* If you need to know correct free space on the FAT32 volume, set bit 0 of this +/ option, and f_getfree() function at first time after volume mount will force +/ a full FAT scan. Bit 1 controls the use of last allocated cluster number. +/ +/ bit0=0: Use free cluster count in the FSINFO if available. +/ bit0=1: Do not trust free cluster count in the FSINFO. +/ bit1=0: Use last allocated cluster number in the FSINFO if available. +/ bit1=1: Do not trust last allocated cluster number in the FSINFO. +*/ + + +#ifndef FF_FS_LOCK +#define FF_FS_LOCK 0 +#endif +/* The option FF_FS_LOCK switches file lock function to control duplicated file open +/ and illegal operation to open objects. This option must be 0 when FF_FS_READONLY +/ is 1. +/ +/ 0: Disable file lock function. To avoid volume corruption, application program +/ should avoid illegal open, remove and rename to the open objects. +/ >0: Enable file lock function. The value defines how many files/sub-directories +/ can be opened simultaneously under file lock control. Note that the file +/ lock control is independent of re-entrancy. */ + + +#ifndef FF_FS_REENTRANT +#define FF_FS_REENTRANT 1 +#endif +#if FF_FS_REENTRANT +#include "FreeRTOS.h" +#include "semphr.h" +#define FF_SYNC_t SemaphoreHandle_t +#endif +#ifndef FF_FS_TIMEOUT +#define FF_FS_TIMEOUT 1000 +#endif + +/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs +/ module itself. Note that regardless of this option, file access to different +/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs() +/ and f_fdisk() function, are always not re-entrant. Only file/directory access +/ to the same volume is under control of this function. +/ +/ 0: Disable re-entrancy. FF_FS_TIMEOUT and FF_SYNC_t have no effect. +/ 1: Enable re-entrancy. Also user provided synchronization handlers, +/ ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj() +/ function, must be added to the project. Samples are available in +/ option/syscall.c. +/ +/ The FF_FS_TIMEOUT defines timeout period in unit of time tick. +/ The FF_SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*, +/ SemaphoreHandle_t and etc. A header file for O/S definitions needs to be +/ included somewhere in the scope of ff.h. */ + + + +/*--- End of configuration options ---*/ diff --git a/modules/sw_services/fatfs/FreeRTOS/fs_support.c b/modules/sw_services/fatfs/FreeRTOS/fs_support.c index 13db08e5f..71fe0d6aa 100644 --- a/modules/sw_services/fatfs/FreeRTOS/fs_support.c +++ b/modules/sw_services/fatfs/FreeRTOS/fs_support.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/modules/sw_services/fatfs/FreeRTOS/fs_support.h b/modules/sw_services/fatfs/FreeRTOS/fs_support.h index fb9e48476..f222332a3 100644 --- a/modules/sw_services/fatfs/FreeRTOS/fs_support.h +++ b/modules/sw_services/fatfs/FreeRTOS/fs_support.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef FS_SUPPORT_H_ diff --git a/modules/sw_services/generic_pipeline/api/generic_pipeline.h b/modules/sw_services/generic_pipeline/api/generic_pipeline.h index 0f1b464c9..6d6301a27 100644 --- a/modules/sw_services/generic_pipeline/api/generic_pipeline.h +++ b/modules/sw_services/generic_pipeline/api/generic_pipeline.h @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_SW_SERVICES_GENERIC_PIPELINE_H_ #define RTOS_SW_SERVICES_GENERIC_PIPELINE_H_ diff --git a/modules/sw_services/generic_pipeline/src/generic_pipeline.c b/modules/sw_services/generic_pipeline/src/generic_pipeline.c index c2bf05cea..786d7655e 100644 --- a/modules/sw_services/generic_pipeline/src/generic_pipeline.c +++ b/modules/sw_services/generic_pipeline/src/generic_pipeline.c @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT SW_SERVICE_GENERIC_PIPELINE diff --git a/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.c b/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.c index ba1de22be..b972ea701 100644 --- a/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.c +++ b/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.c @@ -1,3 +1,5 @@ +// Copyright 2020-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. /******************************************************************************* * Copyright (c) 2014, 2015 IBM Corp. * diff --git a/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.h b/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.h index dd64c391a..b6ef2d795 100644 --- a/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.h +++ b/modules/sw_services/mqtt/FreeRTOS/MQTTFreeRTOS.h @@ -1,3 +1,5 @@ +// Copyright 2020-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. /******************************************************************************* * Copyright (c) 2014, 2015 IBM Corp. * diff --git a/modules/sw_services/sntpd/FreeRTOS/sntpd.c b/modules/sw_services/sntpd/FreeRTOS/sntpd.c index 452071c9c..e329fd744 100644 --- a/modules/sw_services/sntpd/FreeRTOS/sntpd.c +++ b/modules/sw_services/sntpd/FreeRTOS/sntpd.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "FreeRTOS.h" diff --git a/modules/sw_services/sntpd/FreeRTOS/sntpd.h b/modules/sw_services/sntpd/FreeRTOS/sntpd.h index 24c85e729..440000ba3 100644 --- a/modules/sw_services/sntpd/FreeRTOS/sntpd.h +++ b/modules/sw_services/sntpd/FreeRTOS/sntpd.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef SRC_SNTPD_SNTPD_H_ diff --git a/modules/sw_services/tls_support/FreeRTOS/api/mbedtls_support.h b/modules/sw_services/tls_support/FreeRTOS/api/mbedtls_support.h index c71f45780..2f2e2a31c 100644 --- a/modules/sw_services/tls_support/FreeRTOS/api/mbedtls_support.h +++ b/modules/sw_services/tls_support/FreeRTOS/api/mbedtls_support.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef FREERTOS_TLS_SUPPORT_H_ diff --git a/modules/sw_services/tls_support/FreeRTOS/api/threading_alt.h b/modules/sw_services/tls_support/FreeRTOS/api/threading_alt.h index 1b412de02..108c844bd 100644 --- a/modules/sw_services/tls_support/FreeRTOS/api/threading_alt.h +++ b/modules/sw_services/tls_support/FreeRTOS/api/threading_alt.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef THREADING_ALT_H_ diff --git a/modules/sw_services/tls_support/FreeRTOS/mbedtls_support.c b/modules/sw_services/tls_support/FreeRTOS/mbedtls_support.c index d3c62e605..5e2e3467f 100644 --- a/modules/sw_services/tls_support/FreeRTOS/mbedtls_support.c +++ b/modules/sw_services/tls_support/FreeRTOS/mbedtls_support.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT MBEDTLS_SUPPORT diff --git a/modules/sw_services/tls_support/api/tls_support.h b/modules/sw_services/tls_support/api/tls_support.h index 6c2858efd..a1e434515 100644 --- a/modules/sw_services/tls_support/api/tls_support.h +++ b/modules/sw_services/tls_support/api/tls_support.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef TLS_SUPPORT_H_ diff --git a/modules/sw_services/usb/FreeRTOS/usb_support.c b/modules/sw_services/usb/FreeRTOS/usb_support.c index 5da99706c..eedefc67f 100644 --- a/modules/sw_services/usb/FreeRTOS/usb_support.c +++ b/modules/sw_services/usb/FreeRTOS/usb_support.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* FreeRTOS headers */ diff --git a/modules/sw_services/usb/api/usb_support.h b/modules/sw_services/usb/api/usb_support.h index e10b5bb8f..27c5d2162 100644 --- a/modules/sw_services/usb/api/usb_support.h +++ b/modules/sw_services/usb/api/usb_support.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef USB_SUPPORT_H_ diff --git a/modules/sw_services/usb/msc/msc_disk_manager.c b/modules/sw_services/usb/msc/msc_disk_manager.c index 8030a6fbc..9a9f4e11f 100644 --- a/modules/sw_services/usb/msc/msc_disk_manager.c +++ b/modules/sw_services/usb/msc/msc_disk_manager.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "rtos_osal.h" diff --git a/modules/sw_services/usb/msc/msc_disk_manager.h b/modules/sw_services/usb/msc/msc_disk_manager.h index 1bcb6a5bb..08e17bce6 100644 --- a/modules/sw_services/usb/msc/msc_disk_manager.h +++ b/modules/sw_services/usb/msc/msc_disk_manager.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef MSC_DISK_MANAGER_H_ diff --git a/modules/sw_services/usb/msc/msc_flashdisk.c b/modules/sw_services/usb/msc/msc_flashdisk.c index b3a870f78..a3bc50dda 100644 --- a/modules/sw_services/usb/msc/msc_flashdisk.c +++ b/modules/sw_services/usb/msc/msc_flashdisk.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT MSC_FLASHDISK diff --git a/modules/sw_services/usb/msc/msc_ramdisk.c b/modules/sw_services/usb/msc/msc_ramdisk.c index c2cddbb9c..40a225161 100644 --- a/modules/sw_services/usb/msc/msc_ramdisk.c +++ b/modules/sw_services/usb/msc/msc_ramdisk.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT MSC_RAMDISK diff --git a/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h b/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h index 5384929b3..6a56cfae0 100644 --- a/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h +++ b/modules/sw_services/wifi_manager/FreeRTOS/heapsort.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. diff --git a/modules/sw_services/wifi_manager/FreeRTOS/wifi_connection_mgr.c b/modules/sw_services/wifi_manager/FreeRTOS/wifi_connection_mgr.c index fec8ee050..004d693cd 100644 --- a/modules/sw_services/wifi_manager/FreeRTOS/wifi_connection_mgr.c +++ b/modules/sw_services/wifi_manager/FreeRTOS/wifi_connection_mgr.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #define DEBUG_UNIT WIFI_CONN_MGR diff --git a/modules/sw_services/wifi_manager/api/wifi.h b/modules/sw_services/wifi_manager/api/wifi.h index 7f7673f2b..6dc1d9184 100644 --- a/modules/sw_services/wifi_manager/api/wifi.h +++ b/modules/sw_services/wifi_manager/api/wifi.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef WIFI_H_ diff --git a/test/rtos_drivers/clock_control/src/FreeRTOSConfig.h b/test/rtos_drivers/clock_control/src/FreeRTOSConfig.h index d63bd01ef..64355bfc2 100644 --- a/test/rtos_drivers/clock_control/src/FreeRTOSConfig.h +++ b/test/rtos_drivers/clock_control/src/FreeRTOSConfig.h @@ -1,118 +1,120 @@ -#ifndef FREERTOS_CONFIG_H -#define FREERTOS_CONFIG_H - -/* Here is a good place to include header files that are required across -your application. */ -#include "platform.h" - -#define configUSE_PREEMPTION 1 -#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 -#define configUSE_TICKLESS_IDLE 0 -#define configCPU_CLOCK_HZ 100000000 - -#define configNUM_CORES 5 -#define configTICK_RATE_HZ 1000 -#define configMAX_PRIORITIES 32 -#define configRUN_MULTIPLE_PRIORITIES 1 -#define configUSE_TASK_PREEMPTION_DISABLE 1 -#define configUSE_CORE_AFFINITY 1 -#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 -#define configMAX_TASK_NAME_LEN 32 -#define configUSE_16_BIT_TICKS 0 -#define configIDLE_SHOULD_YIELD 1 -#define configUSE_TASK_NOTIFICATIONS 1 -#define configTASK_NOTIFICATION_ARRAY_ENTRIES 1 -#define configUSE_MUTEXES 1 -#define configUSE_RECURSIVE_MUTEXES 1 -#define configUSE_COUNTING_SEMAPHORES 1 -#define configQUEUE_REGISTRY_SIZE 10 -#define configUSE_QUEUE_SETS 0 -#define configUSE_TIME_SLICING 0 -#define configUSE_NEWLIB_REENTRANT 0 -#define configENABLE_BACKWARD_COMPATIBILITY 0 -#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0 -#define configSTACK_DEPTH_TYPE uint32_t -#define configMESSAGE_BUFFER_LENGTH_TYPE size_t - -/* Memory allocation related definitions. */ -#define configSUPPORT_STATIC_ALLOCATION 0 -#define configSUPPORT_DYNAMIC_ALLOCATION 1 -#define configTOTAL_HEAP_SIZE 256*1024 -#define configAPPLICATION_ALLOCATED_HEAP 0 - -/* Hook function related definitions. */ -#define configUSE_IDLE_HOOK 0 -#define configUSE_MINIMAL_IDLE_HOOK 1 -#define configUSE_TICK_HOOK 0 -#define configCHECK_FOR_STACK_OVERFLOW 0 -#define configUSE_MALLOC_FAILED_HOOK 1 -#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 -#define configUSE_CORE_INIT_HOOK 0 - -/* Run time and task stats gathering related definitions. */ -#define configGENERATE_RUN_TIME_STATS 0 -#if ENABLE_RTOS_XSCOPE_TRACE -#define configUSE_TRACE_FACILITY 1 -#else -#define configUSE_TRACE_FACILITY 0 -#endif -#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ - -/* Co-routine related definitions. */ -#define configUSE_CO_ROUTINES 0 -#define configMAX_CO_ROUTINE_PRIORITIES 1 - -/* Software timer related definitions. */ -#define configUSE_TIMERS 1 -#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) -#define configTIMER_QUEUE_LENGTH 10 -#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) - -/* Define to trap errors during development. */ -#define configASSERT(x) xassert(x) - -/* Define to enable debug_printf() */ -#define configENABLE_DEBUG_PRINTF 1 - -/* Define to map sprintf and snprintf to the - * lite versions in lib_rtos_support */ - #include -#define configUSE_DEBUG_SPRINTF 1 - -/* Define to enable debug prints from tasks.c */ -#if ON_TILE(0) -#define configTASKS_DEBUG 0 -#endif -#if ON_TILE(1) -#define configTASKS_DEBUG 0 -#endif - -/* FreeRTOS MPU specific definitions. */ -#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 - -/* Optional functions - most linkers will remove unused functions anyway. */ -#define INCLUDE_vTaskPrioritySet 1 -#define INCLUDE_uxTaskPriorityGet 1 -#define INCLUDE_vTaskDelete 1 -#define INCLUDE_vTaskSuspend 1 -#define INCLUDE_xResumeFromISR 1 -#define INCLUDE_vTaskDelayUntil 1 -#define INCLUDE_vTaskDelay 1 -#define INCLUDE_xTaskGetSchedulerState 1 -#define INCLUDE_xTaskGetCurrentTaskHandle 1 -#define INCLUDE_uxTaskGetStackHighWaterMark 1 -#define INCLUDE_xTaskGetIdleTaskHandle 1 -#define INCLUDE_eTaskGetState 1 -#define INCLUDE_xEventGroupSetBitFromISR 1 -#define INCLUDE_xTimerPendFunctionCall 1 -#define INCLUDE_xTaskAbortDelay 1 -#define INCLUDE_xTaskGetHandle 1 -#define INCLUDE_xTaskResumeFromISR 1 -#define INCLUDE_xQueueGetMutexHolder 1 - -/* A header file that defines trace macro can be included here. */ -#if ENABLE_RTOS_XSCOPE_TRACE -#include "xcore_trace.h" -#endif - -#endif /* FREERTOS_CONFIG_H */ +// Copyright 2019-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +#ifndef FREERTOS_CONFIG_H +#define FREERTOS_CONFIG_H + +/* Here is a good place to include header files that are required across +your application. */ +#include "platform.h" + +#define configUSE_PREEMPTION 1 +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 +#define configUSE_TICKLESS_IDLE 0 +#define configCPU_CLOCK_HZ 100000000 + +#define configNUM_CORES 5 +#define configTICK_RATE_HZ 1000 +#define configMAX_PRIORITIES 32 +#define configRUN_MULTIPLE_PRIORITIES 1 +#define configUSE_TASK_PREEMPTION_DISABLE 1 +#define configUSE_CORE_AFFINITY 1 +#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 +#define configMAX_TASK_NAME_LEN 32 +#define configUSE_16_BIT_TICKS 0 +#define configIDLE_SHOULD_YIELD 1 +#define configUSE_TASK_NOTIFICATIONS 1 +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 1 +#define configUSE_MUTEXES 1 +#define configUSE_RECURSIVE_MUTEXES 1 +#define configUSE_COUNTING_SEMAPHORES 1 +#define configQUEUE_REGISTRY_SIZE 10 +#define configUSE_QUEUE_SETS 0 +#define configUSE_TIME_SLICING 0 +#define configUSE_NEWLIB_REENTRANT 0 +#define configENABLE_BACKWARD_COMPATIBILITY 0 +#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 0 +#define configSTACK_DEPTH_TYPE uint32_t +#define configMESSAGE_BUFFER_LENGTH_TYPE size_t + +/* Memory allocation related definitions. */ +#define configSUPPORT_STATIC_ALLOCATION 0 +#define configSUPPORT_DYNAMIC_ALLOCATION 1 +#define configTOTAL_HEAP_SIZE 256*1024 +#define configAPPLICATION_ALLOCATED_HEAP 0 + +/* Hook function related definitions. */ +#define configUSE_IDLE_HOOK 0 +#define configUSE_MINIMAL_IDLE_HOOK 1 +#define configUSE_TICK_HOOK 0 +#define configCHECK_FOR_STACK_OVERFLOW 0 +#define configUSE_MALLOC_FAILED_HOOK 1 +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 +#define configUSE_CORE_INIT_HOOK 0 + +/* Run time and task stats gathering related definitions. */ +#define configGENERATE_RUN_TIME_STATS 0 +#if ENABLE_RTOS_XSCOPE_TRACE +#define configUSE_TRACE_FACILITY 1 +#else +#define configUSE_TRACE_FACILITY 0 +#endif +#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ + +/* Co-routine related definitions. */ +#define configUSE_CO_ROUTINES 0 +#define configMAX_CO_ROUTINE_PRIORITIES 1 + +/* Software timer related definitions. */ +#define configUSE_TIMERS 1 +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) +#define configTIMER_QUEUE_LENGTH 10 +#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) + +/* Define to trap errors during development. */ +#define configASSERT(x) xassert(x) + +/* Define to enable debug_printf() */ +#define configENABLE_DEBUG_PRINTF 1 + +/* Define to map sprintf and snprintf to the + * lite versions in lib_rtos_support */ + #include +#define configUSE_DEBUG_SPRINTF 1 + +/* Define to enable debug prints from tasks.c */ +#if ON_TILE(0) +#define configTASKS_DEBUG 0 +#endif +#if ON_TILE(1) +#define configTASKS_DEBUG 0 +#endif + +/* FreeRTOS MPU specific definitions. */ +#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 + +/* Optional functions - most linkers will remove unused functions anyway. */ +#define INCLUDE_vTaskPrioritySet 1 +#define INCLUDE_uxTaskPriorityGet 1 +#define INCLUDE_vTaskDelete 1 +#define INCLUDE_vTaskSuspend 1 +#define INCLUDE_xResumeFromISR 1 +#define INCLUDE_vTaskDelayUntil 1 +#define INCLUDE_vTaskDelay 1 +#define INCLUDE_xTaskGetSchedulerState 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 +#define INCLUDE_uxTaskGetStackHighWaterMark 1 +#define INCLUDE_xTaskGetIdleTaskHandle 1 +#define INCLUDE_eTaskGetState 1 +#define INCLUDE_xEventGroupSetBitFromISR 1 +#define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetHandle 1 +#define INCLUDE_xTaskResumeFromISR 1 +#define INCLUDE_xQueueGetMutexHolder 1 + +/* A header file that defines trace macro can be included here. */ +#if ENABLE_RTOS_XSCOPE_TRACE +#include "xcore_trace.h" +#endif + +#endif /* FREERTOS_CONFIG_H */ diff --git a/test/rtos_drivers/clock_control/src/app_conf.h b/test/rtos_drivers/clock_control/src/app_conf.h index 5756ce41f..f139fc80a 100644 --- a/test/rtos_drivers/clock_control/src/app_conf.h +++ b/test/rtos_drivers/clock_control/src/app_conf.h @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef APP_CONF_H_ #define APP_CONF_H_ diff --git a/test/rtos_drivers/clock_control/src/main.c b/test/rtos_drivers/clock_control/src/main.c index 6adc5f596..cac8d799f 100644 --- a/test/rtos_drivers/clock_control/src/main.c +++ b/test/rtos_drivers/clock_control/src/main.c @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ #include diff --git a/test/rtos_drivers/clock_control/src/platform/driver_instances.c b/test/rtos_drivers/clock_control/src/platform/driver_instances.c index 19b595000..fcf6afdff 100644 --- a/test/rtos_drivers/clock_control/src/platform/driver_instances.c +++ b/test/rtos_drivers/clock_control/src/platform/driver_instances.c @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include "driver_instances.h" diff --git a/test/rtos_drivers/clock_control/src/platform/driver_instances.h b/test/rtos_drivers/clock_control/src/platform/driver_instances.h index 9d10c3163..84907dae6 100644 --- a/test/rtos_drivers/clock_control/src/platform/driver_instances.h +++ b/test/rtos_drivers/clock_control/src/platform/driver_instances.h @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef DRIVER_INSTANCES_H_ #define DRIVER_INSTANCES_H_ diff --git a/test/rtos_drivers/clock_control/src/platform/platform_init.c b/test/rtos_drivers/clock_control/src/platform/platform_init.c index fc2054ae0..3494c7d3e 100644 --- a/test/rtos_drivers/clock_control/src/platform/platform_init.c +++ b/test/rtos_drivers/clock_control/src/platform/platform_init.c @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/test/rtos_drivers/clock_control/src/platform/platform_init.h b/test/rtos_drivers/clock_control/src/platform/platform_init.h index bae19eb7a..9d1b1b531 100644 --- a/test/rtos_drivers/clock_control/src/platform/platform_init.h +++ b/test/rtos_drivers/clock_control/src/platform/platform_init.h @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef PLATFORM_INIT_H_ #define PLATFORM_INIT_H_ diff --git a/test/rtos_drivers/clock_control/src/platform/platform_start.c b/test/rtos_drivers/clock_control/src/platform/platform_start.c index d11a80532..8c949df45 100644 --- a/test/rtos_drivers/clock_control/src/platform/platform_start.c +++ b/test/rtos_drivers/clock_control/src/platform/platform_start.c @@ -1,5 +1,5 @@ -// Copyright (c) 2022 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2022-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/test/rtos_drivers/hil/src/FreeRTOSConfig.h b/test/rtos_drivers/hil/src/FreeRTOSConfig.h index bd9b0aeb7..b3bf843d4 100644 --- a/test/rtos_drivers/hil/src/FreeRTOSConfig.h +++ b/test/rtos_drivers/hil/src/FreeRTOSConfig.h @@ -1,118 +1,120 @@ -#ifndef FREERTOS_CONFIG_H -#define FREERTOS_CONFIG_H - -/* Here is a good place to include header files that are required across -your application. */ -#include "platform.h" - -/* - * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. - * the i2s task should probably not be using a FreeRTOS stream buffer. - */ -#define sbRECEIVE_COMPLETED( pxStreamBuffer ) - -#define configUSE_PREEMPTION 1 -#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 -#define configUSE_TICKLESS_IDLE 0 -#define configCPU_CLOCK_HZ 100000000 -#define configNUM_CORES 8 -#define configTICK_RATE_HZ 1000 -#define configMAX_PRIORITIES 32 -#define configRUN_MULTIPLE_PRIORITIES 1 -#define configUSE_TASK_PREEMPTION_DISABLE 1 -#define configUSE_CORE_AFFINITY 1 -#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 -#define configMAX_TASK_NAME_LEN 16 -#define configUSE_16_BIT_TICKS 0 -#define configIDLE_SHOULD_YIELD 1 -#define configUSE_TASK_NOTIFICATIONS 1 -#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 -#define configUSE_MUTEXES 1 -#define configUSE_RECURSIVE_MUTEXES 1 -#define configUSE_COUNTING_SEMAPHORES 1 -#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ -#define configQUEUE_REGISTRY_SIZE 10 -#define configUSE_QUEUE_SETS 1 -#define configUSE_TIME_SLICING 1 -#define configUSE_NEWLIB_REENTRANT 0 -#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ -#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 -#define configSTACK_DEPTH_TYPE uint32_t -#define configMESSAGE_BUFFER_LENGTH_TYPE size_t - - -/* Memory allocation related definitions. */ -#define configSUPPORT_STATIC_ALLOCATION 0 -#define configSUPPORT_DYNAMIC_ALLOCATION 1 -#define configTOTAL_HEAP_SIZE 384*1024 -#define configAPPLICATION_ALLOCATED_HEAP 0 - -/* Hook function related definitions. */ -#define configUSE_IDLE_HOOK 0 -#define configUSE_TICK_HOOK 0 -#define configCHECK_FOR_STACK_OVERFLOW 1 -#define configUSE_MALLOC_FAILED_HOOK 1 -#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 -#define configUSE_CORE_INIT_HOOK 0 - -/* Run time and task stats gathering related definitions. */ -#define configGENERATE_RUN_TIME_STATS 1 -#define configUSE_TRACE_FACILITY 1 -#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ - -/* Co-routine related definitions. */ -#define configUSE_CO_ROUTINES 0 -#define configMAX_CO_ROUTINE_PRIORITIES 1 - -/* Software timer related definitions. */ -#define configUSE_TIMERS 1 -#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) -#define configTIMER_QUEUE_LENGTH 10 -#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) - -/* Define to trap errors during development. */ -#define configASSERT(x) xassert(x) - -/* Define to enable debug_printf() */ -#define configENABLE_DEBUG_PRINTF 1 - -/* Define to map sprintf and snprintf to the - * lite versions in lib_rtos_support */ - #include -#define configUSE_DEBUG_SPRINTF 1 - -/* Define to enable debug prints from tasks.c */ -#if ON_TILE(0) -#define configTASKS_DEBUG 0 -#endif -#if ON_TILE(1) -#define configTASKS_DEBUG 0 -#endif - -/* FreeRTOS MPU specific definitions. */ -#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 - -/* Optional functions - most linkers will remove unused functions anyway. */ -#define INCLUDE_vTaskPrioritySet 1 -#define INCLUDE_uxTaskPriorityGet 1 -#define INCLUDE_vTaskDelete 1 -#define INCLUDE_vTaskSuspend 1 -#define INCLUDE_xResumeFromISR 1 -#define INCLUDE_vTaskDelayUntil 1 -#define INCLUDE_vTaskDelay 1 -#define INCLUDE_xTaskGetSchedulerState 1 -#define INCLUDE_xTaskGetCurrentTaskHandle 1 -#define INCLUDE_uxTaskGetStackHighWaterMark 1 -#define INCLUDE_xTaskGetIdleTaskHandle 1 -#define INCLUDE_eTaskGetState 1 -#define INCLUDE_xEventGroupSetBitFromISR 1 -#define INCLUDE_xTimerPendFunctionCall 1 -#define INCLUDE_xTaskAbortDelay 1 -#define INCLUDE_xTaskGetHandle 1 -#define INCLUDE_xTaskResumeFromISR 1 -#define INCLUDE_xQueueGetMutexHolder 1 - -/* A header file that defines trace macro can be included here. */ -// #include "xcore_trace.h" - -#endif /* FREERTOS_CONFIG_H */ +// Copyright 2019-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +#ifndef FREERTOS_CONFIG_H +#define FREERTOS_CONFIG_H + +/* Here is a good place to include header files that are required across +your application. */ +#include "platform.h" + +/* + * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. + * the i2s task should probably not be using a FreeRTOS stream buffer. + */ +#define sbRECEIVE_COMPLETED( pxStreamBuffer ) + +#define configUSE_PREEMPTION 1 +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 +#define configUSE_TICKLESS_IDLE 0 +#define configCPU_CLOCK_HZ 100000000 +#define configNUM_CORES 8 +#define configTICK_RATE_HZ 1000 +#define configMAX_PRIORITIES 32 +#define configRUN_MULTIPLE_PRIORITIES 1 +#define configUSE_TASK_PREEMPTION_DISABLE 1 +#define configUSE_CORE_AFFINITY 1 +#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 +#define configMAX_TASK_NAME_LEN 16 +#define configUSE_16_BIT_TICKS 0 +#define configIDLE_SHOULD_YIELD 1 +#define configUSE_TASK_NOTIFICATIONS 1 +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 +#define configUSE_MUTEXES 1 +#define configUSE_RECURSIVE_MUTEXES 1 +#define configUSE_COUNTING_SEMAPHORES 1 +#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ +#define configQUEUE_REGISTRY_SIZE 10 +#define configUSE_QUEUE_SETS 1 +#define configUSE_TIME_SLICING 1 +#define configUSE_NEWLIB_REENTRANT 0 +#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ +#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 +#define configSTACK_DEPTH_TYPE uint32_t +#define configMESSAGE_BUFFER_LENGTH_TYPE size_t + + +/* Memory allocation related definitions. */ +#define configSUPPORT_STATIC_ALLOCATION 0 +#define configSUPPORT_DYNAMIC_ALLOCATION 1 +#define configTOTAL_HEAP_SIZE 384*1024 +#define configAPPLICATION_ALLOCATED_HEAP 0 + +/* Hook function related definitions. */ +#define configUSE_IDLE_HOOK 0 +#define configUSE_TICK_HOOK 0 +#define configCHECK_FOR_STACK_OVERFLOW 1 +#define configUSE_MALLOC_FAILED_HOOK 1 +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 +#define configUSE_CORE_INIT_HOOK 0 + +/* Run time and task stats gathering related definitions. */ +#define configGENERATE_RUN_TIME_STATS 1 +#define configUSE_TRACE_FACILITY 1 +#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ + +/* Co-routine related definitions. */ +#define configUSE_CO_ROUTINES 0 +#define configMAX_CO_ROUTINE_PRIORITIES 1 + +/* Software timer related definitions. */ +#define configUSE_TIMERS 1 +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) +#define configTIMER_QUEUE_LENGTH 10 +#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) + +/* Define to trap errors during development. */ +#define configASSERT(x) xassert(x) + +/* Define to enable debug_printf() */ +#define configENABLE_DEBUG_PRINTF 1 + +/* Define to map sprintf and snprintf to the + * lite versions in lib_rtos_support */ + #include +#define configUSE_DEBUG_SPRINTF 1 + +/* Define to enable debug prints from tasks.c */ +#if ON_TILE(0) +#define configTASKS_DEBUG 0 +#endif +#if ON_TILE(1) +#define configTASKS_DEBUG 0 +#endif + +/* FreeRTOS MPU specific definitions. */ +#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 + +/* Optional functions - most linkers will remove unused functions anyway. */ +#define INCLUDE_vTaskPrioritySet 1 +#define INCLUDE_uxTaskPriorityGet 1 +#define INCLUDE_vTaskDelete 1 +#define INCLUDE_vTaskSuspend 1 +#define INCLUDE_xResumeFromISR 1 +#define INCLUDE_vTaskDelayUntil 1 +#define INCLUDE_vTaskDelay 1 +#define INCLUDE_xTaskGetSchedulerState 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 +#define INCLUDE_uxTaskGetStackHighWaterMark 1 +#define INCLUDE_xTaskGetIdleTaskHandle 1 +#define INCLUDE_eTaskGetState 1 +#define INCLUDE_xEventGroupSetBitFromISR 1 +#define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetHandle 1 +#define INCLUDE_xTaskResumeFromISR 1 +#define INCLUDE_xQueueGetMutexHolder 1 + +/* A header file that defines trace macro can be included here. */ +// #include "xcore_trace.h" + +#endif /* FREERTOS_CONFIG_H */ diff --git a/test/rtos_drivers/hil/src/app_conf.h b/test/rtos_drivers/hil/src/app_conf.h index c1dd72929..ff5ebc139 100644 --- a/test/rtos_drivers/hil/src/app_conf.h +++ b/test/rtos_drivers/hil/src/app_conf.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef APP_CONF_H_ diff --git a/test/rtos_drivers/hil/src/board_init.c b/test/rtos_drivers/hil/src/board_init.c index 53c25acbc..dcfdfa4f0 100644 --- a/test/rtos_drivers/hil/src/board_init.c +++ b/test/rtos_drivers/hil/src/board_init.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/test/rtos_drivers/hil/src/board_init.h b/test/rtos_drivers/hil/src/board_init.h index 318f02160..0a7517d2b 100644 --- a/test/rtos_drivers/hil/src/board_init.h +++ b/test/rtos_drivers/hil/src/board_init.h @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef BOARD_INIT_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.c b/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.c index e959c7059..9064c18d1 100644 --- a/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.h b/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.h index 09e51cb77..711c60431 100644 --- a/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.h +++ b/test/rtos_drivers/hil/src/individual_tests/gpio/gpio_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef GPIO_TEST_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/gpio/local/io_test.c b/test/rtos_drivers/hil/src/individual_tests/gpio/local/io_test.c index 5faac2f58..379778f3e 100644 --- a/test/rtos_drivers/hil/src/individual_tests/gpio/local/io_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/gpio/local/io_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/gpio/rpc/io_test.c b/test/rtos_drivers/hil/src/individual_tests/gpio/rpc/io_test.c index 7747fe057..e0fe06c2d 100644 --- a/test/rtos_drivers/hil/src/individual_tests/gpio/rpc/io_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/gpio/rpc/io_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.c index 1186c517a..9089884ef 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.h b/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.h index 86f5783c1..810fe4a15 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.h +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/i2c_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef I2C_TEST_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_multiple_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_multiple_test.c index 545abba5b..453b898c4 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_multiple_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_multiple_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_test.c index f24cec3c9..0abbaac1c 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_read_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_read_test.c index 66805e820..9d736e8ed 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_read_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_write_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_write_test.c index 81c2adf97..974ef4c28 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_write_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_reg_write_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_multiple_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_multiple_test.c index 2bc7a6eb2..c414c7e78 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_multiple_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_multiple_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_test.c index 579ae5146..de57b0d48 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/local/master_write_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_multiple_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_multiple_test.c index b807f9553..3145fb33a 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_multiple_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_multiple_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_test.c index c6dd54c28..f16ba2a31 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_read_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_read_test.c index a3d64675b..0ed9a39f9 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_read_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_write_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_write_test.c index a02d90bfd..55f49ca86 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_write_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_reg_write_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_multiple_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_multiple_test.c index 1a2aa2553..15685c27b 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_multiple_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_multiple_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_test.c b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_test.c index bca6039e2..fe2235597 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2c/rpc/master_write_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.c b/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.c index 4f4b3f1a2..2ebc3f61f 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.h b/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.h index eaac6c37e..c8d72823f 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.h +++ b/test/rtos_drivers/hil/src/individual_tests/i2s/i2s_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef I2S_TEST_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2s/local/master_to_slave_test.c b/test/rtos_drivers/hil/src/individual_tests/i2s/local/master_to_slave_test.c index 7c4d3ad86..51428b5bf 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2s/local/master_to_slave_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2s/local/master_to_slave_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2s/local/slave_to_master_test.c b/test/rtos_drivers/hil/src/individual_tests/i2s/local/slave_to_master_test.c index 34bb374f4..27e74ace8 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2s/local/slave_to_master_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2s/local/slave_to_master_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/master_to_slave_test.c b/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/master_to_slave_test.c index 433877dbd..d65b49ef9 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/master_to_slave_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/master_to_slave_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/slave_to_master_test.c b/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/slave_to_master_test.c index 7bcd22116..f950c881c 100644 --- a/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/slave_to_master_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/i2s/rpc/slave_to_master_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/individual_tests.h b/test/rtos_drivers/hil/src/individual_tests/individual_tests.h index 766f3bb90..74f982b92 100644 --- a/test/rtos_drivers/hil/src/individual_tests/individual_tests.h +++ b/test/rtos_drivers/hil/src/individual_tests/individual_tests.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef INDIVIDUAL_TESTS_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.c b/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.c index 926df3ef2..92833f11c 100644 --- a/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.h b/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.h index d356d7170..706af9f3e 100644 --- a/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.h +++ b/test/rtos_drivers/hil/src/individual_tests/intertile/intertile_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef INTERTILE_TEST_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/intertile/local/fixed_len_tx_test.c b/test/rtos_drivers/hil/src/individual_tests/intertile/local/fixed_len_tx_test.c index aade52809..41215e42e 100644 --- a/test/rtos_drivers/hil/src/individual_tests/intertile/local/fixed_len_tx_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/intertile/local/fixed_len_tx_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/intertile/local/var_len_tx_test.c b/test/rtos_drivers/hil/src/individual_tests/intertile/local/var_len_tx_test.c index 1cb9633de..05a222b5c 100644 --- a/test/rtos_drivers/hil/src/individual_tests/intertile/local/var_len_tx_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/intertile/local/var_len_tx_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/mic_array/local/get_samples_test.c b/test/rtos_drivers/hil/src/individual_tests/mic_array/local/get_samples_test.c index 880cfaca3..115eb6c22 100644 --- a/test/rtos_drivers/hil/src/individual_tests/mic_array/local/get_samples_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/mic_array/local/get_samples_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.c b/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.c index 9be4c92da..4545c2caf 100644 --- a/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.h b/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.h index 372a7f395..1c330a873 100644 --- a/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.h +++ b/test/rtos_drivers/hil/src/individual_tests/mic_array/mic_array_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef MIC_ARRAY_TEST_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/mic_array/rpc/get_samples_test.c b/test/rtos_drivers/hil/src/individual_tests/mic_array/rpc/get_samples_test.c index 2a4e84ca1..5d02b25ae 100644 --- a/test/rtos_drivers/hil/src/individual_tests/mic_array/rpc/get_samples_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/mic_array/rpc/get_samples_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/check_params_test.c b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/check_params_test.c index f969c12e9..221172427 100644 --- a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/check_params_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/check_params_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/multiple_user_test.c b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/multiple_user_test.c index b796b2814..c74d11530 100644 --- a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/multiple_user_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/global/multiple_user_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/local/read_write_read_test.c b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/local/read_write_read_test.c index 30337ef00..7ae2ed680 100644 --- a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/local/read_write_read_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/local/read_write_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.c b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.c index 3afcdaad1..300fca1f9 100644 --- a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.h b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.h index c41c69d2f..f1c0dc61d 100644 --- a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.h +++ b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/qspi_flash_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef QSPI_FLASH_TEST_H_ diff --git a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/rpc/read_write_read_test.c b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/rpc/read_write_read_test.c index a497121b6..f3b3bb6e4 100644 --- a/test/rtos_drivers/hil/src/individual_tests/qspi_flash/rpc/read_write_read_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/qspi_flash/rpc/read_write_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/swmem/local/swmem_read_write_test.c b/test/rtos_drivers/hil/src/individual_tests/swmem/local/swmem_read_write_test.c index 3b853dd39..1616c91ad 100644 --- a/test/rtos_drivers/hil/src/individual_tests/swmem/local/swmem_read_write_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/swmem/local/swmem_read_write_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.c b/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.c index 0ebe29264..68785e7af 100644 --- a/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.c +++ b/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.h b/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.h index 1d6ff9b74..e76b675be 100644 --- a/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.h +++ b/test/rtos_drivers/hil/src/individual_tests/swmem/swmem_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef SWMEM_TEST_H_ diff --git a/test/rtos_drivers/hil/src/main.c b/test/rtos_drivers/hil/src/main.c index 1298bcf52..2268eeaa3 100644 --- a/test/rtos_drivers/hil/src/main.c +++ b/test/rtos_drivers/hil/src/main.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil/src/rtos_test/rtos_test_utils.h b/test/rtos_drivers/hil/src/rtos_test/rtos_test_utils.h index 3321507f3..278ed176a 100644 --- a/test/rtos_drivers/hil/src/rtos_test/rtos_test_utils.h +++ b/test/rtos_drivers/hil/src/rtos_test/rtos_test_utils.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_TEST_UTILS_H_ diff --git a/test/rtos_drivers/hil/test_verify_gpio_results.py b/test/rtos_drivers/hil/test_verify_gpio_results.py index 0f980f389..87d29b867 100644 --- a/test/rtos_drivers/hil/test_verify_gpio_results.py +++ b/test/rtos_drivers/hil/test_verify_gpio_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/test/rtos_drivers/hil/test_verify_i2c_results.py b/test/rtos_drivers/hil/test_verify_i2c_results.py index b43f343bf..408713785 100644 --- a/test/rtos_drivers/hil/test_verify_i2c_results.py +++ b/test/rtos_drivers/hil/test_verify_i2c_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/test/rtos_drivers/hil/test_verify_i2s_results.py b/test/rtos_drivers/hil/test_verify_i2s_results.py index 4e3863470..1e378b4ed 100644 --- a/test/rtos_drivers/hil/test_verify_i2s_results.py +++ b/test/rtos_drivers/hil/test_verify_i2s_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/test/rtos_drivers/hil/test_verify_intertile_results.py b/test/rtos_drivers/hil/test_verify_intertile_results.py index c471721d0..519dcb013 100644 --- a/test/rtos_drivers/hil/test_verify_intertile_results.py +++ b/test/rtos_drivers/hil/test_verify_intertile_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/test/rtos_drivers/hil/test_verify_mic_array_results.py b/test/rtos_drivers/hil/test_verify_mic_array_results.py index c3aa48e3d..17131305e 100644 --- a/test/rtos_drivers/hil/test_verify_mic_array_results.py +++ b/test/rtos_drivers/hil/test_verify_mic_array_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/test/rtos_drivers/hil/test_verify_swmem_results.py b/test/rtos_drivers/hil/test_verify_swmem_results.py index 0f980f389..87d29b867 100644 --- a/test/rtos_drivers/hil/test_verify_swmem_results.py +++ b/test/rtos_drivers/hil/test_verify_swmem_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/test/rtos_drivers/hil_add/src/FreeRTOSConfig.h b/test/rtos_drivers/hil_add/src/FreeRTOSConfig.h index bd9b0aeb7..b3bf843d4 100644 --- a/test/rtos_drivers/hil_add/src/FreeRTOSConfig.h +++ b/test/rtos_drivers/hil_add/src/FreeRTOSConfig.h @@ -1,118 +1,120 @@ -#ifndef FREERTOS_CONFIG_H -#define FREERTOS_CONFIG_H - -/* Here is a good place to include header files that are required across -your application. */ -#include "platform.h" - -/* - * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. - * the i2s task should probably not be using a FreeRTOS stream buffer. - */ -#define sbRECEIVE_COMPLETED( pxStreamBuffer ) - -#define configUSE_PREEMPTION 1 -#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 -#define configUSE_TICKLESS_IDLE 0 -#define configCPU_CLOCK_HZ 100000000 -#define configNUM_CORES 8 -#define configTICK_RATE_HZ 1000 -#define configMAX_PRIORITIES 32 -#define configRUN_MULTIPLE_PRIORITIES 1 -#define configUSE_TASK_PREEMPTION_DISABLE 1 -#define configUSE_CORE_AFFINITY 1 -#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 -#define configMAX_TASK_NAME_LEN 16 -#define configUSE_16_BIT_TICKS 0 -#define configIDLE_SHOULD_YIELD 1 -#define configUSE_TASK_NOTIFICATIONS 1 -#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 -#define configUSE_MUTEXES 1 -#define configUSE_RECURSIVE_MUTEXES 1 -#define configUSE_COUNTING_SEMAPHORES 1 -#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ -#define configQUEUE_REGISTRY_SIZE 10 -#define configUSE_QUEUE_SETS 1 -#define configUSE_TIME_SLICING 1 -#define configUSE_NEWLIB_REENTRANT 0 -#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ -#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 -#define configSTACK_DEPTH_TYPE uint32_t -#define configMESSAGE_BUFFER_LENGTH_TYPE size_t - - -/* Memory allocation related definitions. */ -#define configSUPPORT_STATIC_ALLOCATION 0 -#define configSUPPORT_DYNAMIC_ALLOCATION 1 -#define configTOTAL_HEAP_SIZE 384*1024 -#define configAPPLICATION_ALLOCATED_HEAP 0 - -/* Hook function related definitions. */ -#define configUSE_IDLE_HOOK 0 -#define configUSE_TICK_HOOK 0 -#define configCHECK_FOR_STACK_OVERFLOW 1 -#define configUSE_MALLOC_FAILED_HOOK 1 -#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 -#define configUSE_CORE_INIT_HOOK 0 - -/* Run time and task stats gathering related definitions. */ -#define configGENERATE_RUN_TIME_STATS 1 -#define configUSE_TRACE_FACILITY 1 -#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ - -/* Co-routine related definitions. */ -#define configUSE_CO_ROUTINES 0 -#define configMAX_CO_ROUTINE_PRIORITIES 1 - -/* Software timer related definitions. */ -#define configUSE_TIMERS 1 -#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) -#define configTIMER_QUEUE_LENGTH 10 -#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) - -/* Define to trap errors during development. */ -#define configASSERT(x) xassert(x) - -/* Define to enable debug_printf() */ -#define configENABLE_DEBUG_PRINTF 1 - -/* Define to map sprintf and snprintf to the - * lite versions in lib_rtos_support */ - #include -#define configUSE_DEBUG_SPRINTF 1 - -/* Define to enable debug prints from tasks.c */ -#if ON_TILE(0) -#define configTASKS_DEBUG 0 -#endif -#if ON_TILE(1) -#define configTASKS_DEBUG 0 -#endif - -/* FreeRTOS MPU specific definitions. */ -#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 - -/* Optional functions - most linkers will remove unused functions anyway. */ -#define INCLUDE_vTaskPrioritySet 1 -#define INCLUDE_uxTaskPriorityGet 1 -#define INCLUDE_vTaskDelete 1 -#define INCLUDE_vTaskSuspend 1 -#define INCLUDE_xResumeFromISR 1 -#define INCLUDE_vTaskDelayUntil 1 -#define INCLUDE_vTaskDelay 1 -#define INCLUDE_xTaskGetSchedulerState 1 -#define INCLUDE_xTaskGetCurrentTaskHandle 1 -#define INCLUDE_uxTaskGetStackHighWaterMark 1 -#define INCLUDE_xTaskGetIdleTaskHandle 1 -#define INCLUDE_eTaskGetState 1 -#define INCLUDE_xEventGroupSetBitFromISR 1 -#define INCLUDE_xTimerPendFunctionCall 1 -#define INCLUDE_xTaskAbortDelay 1 -#define INCLUDE_xTaskGetHandle 1 -#define INCLUDE_xTaskResumeFromISR 1 -#define INCLUDE_xQueueGetMutexHolder 1 - -/* A header file that defines trace macro can be included here. */ -// #include "xcore_trace.h" - -#endif /* FREERTOS_CONFIG_H */ +// Copyright 2019-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +#ifndef FREERTOS_CONFIG_H +#define FREERTOS_CONFIG_H + +/* Here is a good place to include header files that are required across +your application. */ +#include "platform.h" + +/* + * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. + * the i2s task should probably not be using a FreeRTOS stream buffer. + */ +#define sbRECEIVE_COMPLETED( pxStreamBuffer ) + +#define configUSE_PREEMPTION 1 +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 +#define configUSE_TICKLESS_IDLE 0 +#define configCPU_CLOCK_HZ 100000000 +#define configNUM_CORES 8 +#define configTICK_RATE_HZ 1000 +#define configMAX_PRIORITIES 32 +#define configRUN_MULTIPLE_PRIORITIES 1 +#define configUSE_TASK_PREEMPTION_DISABLE 1 +#define configUSE_CORE_AFFINITY 1 +#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 +#define configMAX_TASK_NAME_LEN 16 +#define configUSE_16_BIT_TICKS 0 +#define configIDLE_SHOULD_YIELD 1 +#define configUSE_TASK_NOTIFICATIONS 1 +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 +#define configUSE_MUTEXES 1 +#define configUSE_RECURSIVE_MUTEXES 1 +#define configUSE_COUNTING_SEMAPHORES 1 +#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ +#define configQUEUE_REGISTRY_SIZE 10 +#define configUSE_QUEUE_SETS 1 +#define configUSE_TIME_SLICING 1 +#define configUSE_NEWLIB_REENTRANT 0 +#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ +#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 +#define configSTACK_DEPTH_TYPE uint32_t +#define configMESSAGE_BUFFER_LENGTH_TYPE size_t + + +/* Memory allocation related definitions. */ +#define configSUPPORT_STATIC_ALLOCATION 0 +#define configSUPPORT_DYNAMIC_ALLOCATION 1 +#define configTOTAL_HEAP_SIZE 384*1024 +#define configAPPLICATION_ALLOCATED_HEAP 0 + +/* Hook function related definitions. */ +#define configUSE_IDLE_HOOK 0 +#define configUSE_TICK_HOOK 0 +#define configCHECK_FOR_STACK_OVERFLOW 1 +#define configUSE_MALLOC_FAILED_HOOK 1 +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 +#define configUSE_CORE_INIT_HOOK 0 + +/* Run time and task stats gathering related definitions. */ +#define configGENERATE_RUN_TIME_STATS 1 +#define configUSE_TRACE_FACILITY 1 +#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ + +/* Co-routine related definitions. */ +#define configUSE_CO_ROUTINES 0 +#define configMAX_CO_ROUTINE_PRIORITIES 1 + +/* Software timer related definitions. */ +#define configUSE_TIMERS 1 +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) +#define configTIMER_QUEUE_LENGTH 10 +#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) + +/* Define to trap errors during development. */ +#define configASSERT(x) xassert(x) + +/* Define to enable debug_printf() */ +#define configENABLE_DEBUG_PRINTF 1 + +/* Define to map sprintf and snprintf to the + * lite versions in lib_rtos_support */ + #include +#define configUSE_DEBUG_SPRINTF 1 + +/* Define to enable debug prints from tasks.c */ +#if ON_TILE(0) +#define configTASKS_DEBUG 0 +#endif +#if ON_TILE(1) +#define configTASKS_DEBUG 0 +#endif + +/* FreeRTOS MPU specific definitions. */ +#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 + +/* Optional functions - most linkers will remove unused functions anyway. */ +#define INCLUDE_vTaskPrioritySet 1 +#define INCLUDE_uxTaskPriorityGet 1 +#define INCLUDE_vTaskDelete 1 +#define INCLUDE_vTaskSuspend 1 +#define INCLUDE_xResumeFromISR 1 +#define INCLUDE_vTaskDelayUntil 1 +#define INCLUDE_vTaskDelay 1 +#define INCLUDE_xTaskGetSchedulerState 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 +#define INCLUDE_uxTaskGetStackHighWaterMark 1 +#define INCLUDE_xTaskGetIdleTaskHandle 1 +#define INCLUDE_eTaskGetState 1 +#define INCLUDE_xEventGroupSetBitFromISR 1 +#define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetHandle 1 +#define INCLUDE_xTaskResumeFromISR 1 +#define INCLUDE_xQueueGetMutexHolder 1 + +/* A header file that defines trace macro can be included here. */ +// #include "xcore_trace.h" + +#endif /* FREERTOS_CONFIG_H */ diff --git a/test/rtos_drivers/hil_add/src/app_conf.h b/test/rtos_drivers/hil_add/src/app_conf.h index 3d9a4efca..95fef15ef 100644 --- a/test/rtos_drivers/hil_add/src/app_conf.h +++ b/test/rtos_drivers/hil_add/src/app_conf.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef APP_CONF_H_ diff --git a/test/rtos_drivers/hil_add/src/board_init.c b/test/rtos_drivers/hil_add/src/board_init.c index 28bffa168..2fab52f7a 100644 --- a/test/rtos_drivers/hil_add/src/board_init.c +++ b/test/rtos_drivers/hil_add/src/board_init.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/test/rtos_drivers/hil_add/src/board_init.h b/test/rtos_drivers/hil_add/src/board_init.h index 42cc14d54..148d5f21b 100644 --- a/test/rtos_drivers/hil_add/src/board_init.h +++ b/test/rtos_drivers/hil_add/src/board_init.h @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef BOARD_INIT_H_ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/individual_tests.h b/test/rtos_drivers/hil_add/src/individual_tests/individual_tests.h index c68f6da55..717b62601 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/individual_tests.h +++ b/test/rtos_drivers/hil_add/src/individual_tests/individual_tests.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef INDIVIDUAL_TESTS_H_ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/check_params_test.c b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/check_params_test.c index f969c12e9..221172427 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/check_params_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/check_params_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/multiple_user_test.c b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/multiple_user_test.c index e0ad6b557..91956f793 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/multiple_user_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/global/multiple_user_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_mode_test.c b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_mode_test.c index aac070ea0..e2baa9299 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_mode_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_mode_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_test.c b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_test.c index 257995f9c..5c183d290 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/local/read_write_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.c b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.c index ed81ee38e..65322d844 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.h b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.h index 676d22d1b..3221fb437 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.h +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/qspi_flash_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef QSPI_FLASH_TEST_H_ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_mode_test.c b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_mode_test.c index ada6b6ef9..ac11749de 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_mode_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_mode_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_test.c b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_test.c index 87e792688..09e66a673 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/qspi_flash/rpc/read_write_read_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/spi/local/multiple_transaction_test.c b/test/rtos_drivers/hil_add/src/individual_tests/spi/local/multiple_transaction_test.c index 086f6a96b..9ddcab939 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/spi/local/multiple_transaction_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/spi/local/multiple_transaction_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/spi/local/single_transaction_test.c b/test/rtos_drivers/hil_add/src/individual_tests/spi/local/single_transaction_test.c index e230bd76a..75135697a 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/spi/local/single_transaction_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/spi/local/single_transaction_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/spi/local/slave_default_buffer_test.c b/test/rtos_drivers/hil_add/src/individual_tests/spi/local/slave_default_buffer_test.c index 4b92ca26f..734a0fbb1 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/spi/local/slave_default_buffer_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/spi/local/slave_default_buffer_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/multiple_transaction_test.c b/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/multiple_transaction_test.c index aeed5ed18..ab387c552 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/multiple_transaction_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/multiple_transaction_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/single_transaction_test.c b/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/single_transaction_test.c index 2c34b096e..f2619d3d7 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/single_transaction_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/spi/rpc/single_transaction_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.c b/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.c index a958a26e6..e1c1995c0 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.h b/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.h index ba150807e..5c27cf6ba 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.h +++ b/test/rtos_drivers/hil_add/src/individual_tests/spi/spi_test.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef SPI_TEST_H_ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/uart/local/tx_write_rx_read_test.c b/test/rtos_drivers/hil_add/src/individual_tests/uart/local/tx_write_rx_read_test.c index 79841cbe9..e8f853cc2 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/uart/local/tx_write_rx_read_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/uart/local/tx_write_rx_read_test.c @@ -1,4 +1,5 @@ -// Copyright 22022 XMOS LIMITED. +// Copyright 2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.c b/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.c index b7afe12bb..90e9968ff 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.c +++ b/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.c @@ -1,4 +1,4 @@ -// Copyright 2022 XMOS LIMITED. +// Copyright 2022-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.h b/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.h index e9a8955a8..ff33eec7f 100644 --- a/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.h +++ b/test/rtos_drivers/hil_add/src/individual_tests/uart/uart_test.h @@ -1,4 +1,4 @@ -// Copyright 2022 XMOS LIMITED. +// Copyright 2022-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef UART_TEST_H_ diff --git a/test/rtos_drivers/hil_add/src/main.c b/test/rtos_drivers/hil_add/src/main.c index 2750e2659..4292f4366 100644 --- a/test/rtos_drivers/hil_add/src/main.c +++ b/test/rtos_drivers/hil_add/src/main.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/hil_add/src/rtos_test/rtos_test_utils.h b/test/rtos_drivers/hil_add/src/rtos_test/rtos_test_utils.h index 3321507f3..278ed176a 100644 --- a/test/rtos_drivers/hil_add/src/rtos_test/rtos_test_utils.h +++ b/test/rtos_drivers/hil_add/src/rtos_test/rtos_test_utils.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_TEST_UTILS_H_ diff --git a/test/rtos_drivers/hil_add/test_verify_spi_results.py b/test/rtos_drivers/hil_add/test_verify_spi_results.py index d246fcf39..00804a71d 100644 --- a/test/rtos_drivers/hil_add/test_verify_spi_results.py +++ b/test/rtos_drivers/hil_add/test_verify_spi_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/test/rtos_drivers/python/file_regex_parser.py b/test/rtos_drivers/python/file_regex_parser.py index b4fbdc21b..8b9e32f53 100644 --- a/test/rtos_drivers/python/file_regex_parser.py +++ b/test/rtos_drivers/python/file_regex_parser.py @@ -1,4 +1,4 @@ -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import re diff --git a/test/rtos_drivers/python/parse_test_output.py b/test/rtos_drivers/python/parse_test_output.py index 3cae6cb1b..0486996ef 100755 --- a/test/rtos_drivers/python/parse_test_output.py +++ b/test/rtos_drivers/python/parse_test_output.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import argparse diff --git a/test/rtos_drivers/usb/src/FreeRTOSConfig.h b/test/rtos_drivers/usb/src/FreeRTOSConfig.h index 8fa68ec50..0c9156f2e 100644 --- a/test/rtos_drivers/usb/src/FreeRTOSConfig.h +++ b/test/rtos_drivers/usb/src/FreeRTOSConfig.h @@ -1,118 +1,120 @@ -#ifndef FREERTOS_CONFIG_H -#define FREERTOS_CONFIG_H - -/* Here is a good place to include header files that are required across -your application. */ -#include "platform.h" - -/* - * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. - * the i2s task should probably not be using a FreeRTOS stream buffer. - */ -#define sbRECEIVE_COMPLETED( pxStreamBuffer ) - -#define configUSE_PREEMPTION 1 -#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 -#define configUSE_TICKLESS_IDLE 0 -#define configCPU_CLOCK_HZ 100000000 -#define configNUM_CORES 5 -#define configTICK_RATE_HZ 1000 -#define configMAX_PRIORITIES 32 -#define configRUN_MULTIPLE_PRIORITIES 1 -#define configUSE_TASK_PREEMPTION_DISABLE 1 -#define configUSE_CORE_AFFINITY 1 -#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 -#define configMAX_TASK_NAME_LEN 16 -#define configUSE_16_BIT_TICKS 0 -#define configIDLE_SHOULD_YIELD 1 -#define configUSE_TASK_NOTIFICATIONS 1 -#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 -#define configUSE_MUTEXES 1 -#define configUSE_RECURSIVE_MUTEXES 1 -#define configUSE_COUNTING_SEMAPHORES 1 -#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ -#define configQUEUE_REGISTRY_SIZE 10 -#define configUSE_QUEUE_SETS 1 -#define configUSE_TIME_SLICING 1 -#define configUSE_NEWLIB_REENTRANT 0 -#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ -#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 -#define configSTACK_DEPTH_TYPE uint32_t -#define configMESSAGE_BUFFER_LENGTH_TYPE size_t - - -/* Memory allocation related definitions. */ -#define configSUPPORT_STATIC_ALLOCATION 0 -#define configSUPPORT_DYNAMIC_ALLOCATION 1 -#define configTOTAL_HEAP_SIZE 128*1024 -#define configAPPLICATION_ALLOCATED_HEAP 0 - -/* Hook function related definitions. */ -#define configUSE_IDLE_HOOK 0 -#define configUSE_TICK_HOOK 0 -#define configCHECK_FOR_STACK_OVERFLOW 1 -#define configUSE_MALLOC_FAILED_HOOK 1 -#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 -#define configUSE_CORE_INIT_HOOK 0 - -/* Run time and task stats gathering related definitions. */ -#define configGENERATE_RUN_TIME_STATS 1 -#define configUSE_TRACE_FACILITY 1 -#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ - -/* Co-routine related definitions. */ -#define configUSE_CO_ROUTINES 0 -#define configMAX_CO_ROUTINE_PRIORITIES 1 - -/* Software timer related definitions. */ -#define configUSE_TIMERS 1 -#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) -#define configTIMER_QUEUE_LENGTH 10 -#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) - -/* Define to trap errors during development. */ -#define configASSERT(x) xassert(x) - -/* Define to enable debug_printf() */ -#define configENABLE_DEBUG_PRINTF 1 - -/* Define to map sprintf and snprintf to the - * lite versions in lib_rtos_support */ - #include -#define configUSE_DEBUG_SPRINTF 1 - -/* Define to enable debug prints from tasks.c */ -#if ON_TILE(0) -#define configTASKS_DEBUG 0 -#endif -#if ON_TILE(1) -#define configTASKS_DEBUG 0 -#endif - -/* FreeRTOS MPU specific definitions. */ -#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 - -/* Optional functions - most linkers will remove unused functions anyway. */ -#define INCLUDE_vTaskPrioritySet 1 -#define INCLUDE_uxTaskPriorityGet 1 -#define INCLUDE_vTaskDelete 1 -#define INCLUDE_vTaskSuspend 1 -#define INCLUDE_xResumeFromISR 1 -#define INCLUDE_vTaskDelayUntil 1 -#define INCLUDE_vTaskDelay 1 -#define INCLUDE_xTaskGetSchedulerState 1 -#define INCLUDE_xTaskGetCurrentTaskHandle 1 -#define INCLUDE_uxTaskGetStackHighWaterMark 1 -#define INCLUDE_xTaskGetIdleTaskHandle 1 -#define INCLUDE_eTaskGetState 1 -#define INCLUDE_xEventGroupSetBitFromISR 1 -#define INCLUDE_xTimerPendFunctionCall 1 -#define INCLUDE_xTaskAbortDelay 1 -#define INCLUDE_xTaskGetHandle 1 -#define INCLUDE_xTaskResumeFromISR 1 -#define INCLUDE_xQueueGetMutexHolder 1 - -/* A header file that defines trace macro can be included here. */ -// #include "xcore_trace.h" - -#endif /* FREERTOS_CONFIG_H */ +// Copyright 2019-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +#ifndef FREERTOS_CONFIG_H +#define FREERTOS_CONFIG_H + +/* Here is a good place to include header files that are required across +your application. */ +#include "platform.h" + +/* + * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. + * the i2s task should probably not be using a FreeRTOS stream buffer. + */ +#define sbRECEIVE_COMPLETED( pxStreamBuffer ) + +#define configUSE_PREEMPTION 1 +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 +#define configUSE_TICKLESS_IDLE 0 +#define configCPU_CLOCK_HZ 100000000 +#define configNUM_CORES 5 +#define configTICK_RATE_HZ 1000 +#define configMAX_PRIORITIES 32 +#define configRUN_MULTIPLE_PRIORITIES 1 +#define configUSE_TASK_PREEMPTION_DISABLE 1 +#define configUSE_CORE_AFFINITY 1 +#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 +#define configMAX_TASK_NAME_LEN 16 +#define configUSE_16_BIT_TICKS 0 +#define configIDLE_SHOULD_YIELD 1 +#define configUSE_TASK_NOTIFICATIONS 1 +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 +#define configUSE_MUTEXES 1 +#define configUSE_RECURSIVE_MUTEXES 1 +#define configUSE_COUNTING_SEMAPHORES 1 +#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ +#define configQUEUE_REGISTRY_SIZE 10 +#define configUSE_QUEUE_SETS 1 +#define configUSE_TIME_SLICING 1 +#define configUSE_NEWLIB_REENTRANT 0 +#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ +#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 +#define configSTACK_DEPTH_TYPE uint32_t +#define configMESSAGE_BUFFER_LENGTH_TYPE size_t + + +/* Memory allocation related definitions. */ +#define configSUPPORT_STATIC_ALLOCATION 0 +#define configSUPPORT_DYNAMIC_ALLOCATION 1 +#define configTOTAL_HEAP_SIZE 128*1024 +#define configAPPLICATION_ALLOCATED_HEAP 0 + +/* Hook function related definitions. */ +#define configUSE_IDLE_HOOK 0 +#define configUSE_TICK_HOOK 0 +#define configCHECK_FOR_STACK_OVERFLOW 1 +#define configUSE_MALLOC_FAILED_HOOK 1 +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 +#define configUSE_CORE_INIT_HOOK 0 + +/* Run time and task stats gathering related definitions. */ +#define configGENERATE_RUN_TIME_STATS 1 +#define configUSE_TRACE_FACILITY 1 +#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ + +/* Co-routine related definitions. */ +#define configUSE_CO_ROUTINES 0 +#define configMAX_CO_ROUTINE_PRIORITIES 1 + +/* Software timer related definitions. */ +#define configUSE_TIMERS 1 +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) +#define configTIMER_QUEUE_LENGTH 10 +#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) + +/* Define to trap errors during development. */ +#define configASSERT(x) xassert(x) + +/* Define to enable debug_printf() */ +#define configENABLE_DEBUG_PRINTF 1 + +/* Define to map sprintf and snprintf to the + * lite versions in lib_rtos_support */ + #include +#define configUSE_DEBUG_SPRINTF 1 + +/* Define to enable debug prints from tasks.c */ +#if ON_TILE(0) +#define configTASKS_DEBUG 0 +#endif +#if ON_TILE(1) +#define configTASKS_DEBUG 0 +#endif + +/* FreeRTOS MPU specific definitions. */ +#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 + +/* Optional functions - most linkers will remove unused functions anyway. */ +#define INCLUDE_vTaskPrioritySet 1 +#define INCLUDE_uxTaskPriorityGet 1 +#define INCLUDE_vTaskDelete 1 +#define INCLUDE_vTaskSuspend 1 +#define INCLUDE_xResumeFromISR 1 +#define INCLUDE_vTaskDelayUntil 1 +#define INCLUDE_vTaskDelay 1 +#define INCLUDE_xTaskGetSchedulerState 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 +#define INCLUDE_uxTaskGetStackHighWaterMark 1 +#define INCLUDE_xTaskGetIdleTaskHandle 1 +#define INCLUDE_eTaskGetState 1 +#define INCLUDE_xEventGroupSetBitFromISR 1 +#define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetHandle 1 +#define INCLUDE_xTaskResumeFromISR 1 +#define INCLUDE_xQueueGetMutexHolder 1 + +/* A header file that defines trace macro can be included here. */ +// #include "xcore_trace.h" + +#endif /* FREERTOS_CONFIG_H */ diff --git a/test/rtos_drivers/usb/src/FreeRTOSIPConfig.h b/test/rtos_drivers/usb/src/FreeRTOSIPConfig.h index 86dce284d..829762d7e 100644 --- a/test/rtos_drivers/usb/src/FreeRTOSIPConfig.h +++ b/test/rtos_drivers/usb/src/FreeRTOSIPConfig.h @@ -1,372 +1,374 @@ -/* - * FreeRTOS Kernel V10.2.1 - * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -/***************************************************************************** - * - * See the following URL for configuration information. - * http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Configuration.html - * - *****************************************************************************/ - -#ifndef FREERTOS_IP_CONFIG_H -#define FREERTOS_IP_CONFIG_H - -#define ipconfigUSE_WIFI 1 - -#if ipconfigUSE_WIFI -#include "sl_wfx_iot_wifi.h" -#include "sl_wfx_cmd_api.h" -#endif - -/* User defined network parameters */ -#define IPconfig_IP_ADDR_OCTET_0 10 -#define IPconfig_IP_ADDR_OCTET_1 0 -#define IPconfig_IP_ADDR_OCTET_2 0 -#define IPconfig_IP_ADDR_OCTET_3 1 - -#define IPconfig_NET_MASK_OCTET_0 255 -#define IPconfig_NET_MASK_OCTET_1 0 -#define IPconfig_NET_MASK_OCTET_2 0 -#define IPconfig_NET_MASK_OCTET_3 0 - -#define IPconfig_GATEWAY_OCTET_0 10 -#define IPconfig_GATEWAY_OCTET_1 0 -#define IPconfig_GATEWAY_OCTET_2 0 -#define IPconfig_GATEWAY_OCTET_3 1 - -#define IPconfig_DNS_SERVER_OCTET_0 8 -#define IPconfig_DNS_SERVER_OCTET_1 8 -#define IPconfig_DNS_SERVER_OCTET_2 8 -#define IPconfig_DNS_SERVER_OCTET_3 8 - -#define IPconfig_MAC_ADDR_OCTET_0 0x00 -#define IPconfig_MAC_ADDR_OCTET_1 0x00 -#define IPconfig_MAC_ADDR_OCTET_2 0x00 -#define IPconfig_MAC_ADDR_OCTET_3 0x00 -#define IPconfig_MAC_ADDR_OCTET_4 0x00 -#define IPconfig_MAC_ADDR_OCTET_5 0x00 - - -/* Prototype for the function used to print out. In this case it prints to the -console before the network is connected then a UDP port after the network has -connected. */ -extern void vLoggingPrintf( const char *pcFormatString, ... ); - -#define vLoggingPrintf(...) debug_printf(__VA_ARGS__) - -/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to -1 then FreeRTOS_debug_printf should be defined to the function used to print -out the debugging messages. */ -#define ipconfigHAS_DEBUG_PRINTF 0 -#if( ipconfigHAS_DEBUG_PRINTF == 1 ) - #define FreeRTOS_debug_printf(X) vLoggingPrintf X -#endif - -/* Set to 1 to print out non debugging messages, for example the output of the -FreeRTOS_netstat() command, and ping replies. If ipconfigHAS_PRINTF is set to 1 -then FreeRTOS_printf should be set to the function used to print out the -messages. */ -#define ipconfigHAS_PRINTF 0 -#if( ipconfigHAS_PRINTF == 1 ) - #define FreeRTOS_printf(X) vLoggingPrintf X -#endif - -/* Define the byte order of the target MCU (the MCU FreeRTOS+TCP is executing -on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ -#define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN - -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) -then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software -stack repeating the checksum calculations. */ -#define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 - -#define ipconfigZERO_COPY_RX_DRIVER 0 -#define ipconfigZERO_COPY_TX_DRIVER 0 - -#define ipconfigSUPPORT_SIGNALS 1 -//#define ipconfigSOCKET_HAS_USER_SEMAPHORE 1 -//#define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK 1 -//#define ipconfigUSE_CALLBACKS 1 - -/* Several API's will block until the result is known, or the action has been -performed, for example FreeRTOS_send() and FreeRTOS_recv(). The timeouts can be -set per socket, using setsockopt(). If not set, the times below will be -used as defaults. */ -#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME ( portMAX_DELAY ) -#define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME ( portMAX_DELAY ) - -/* Include support for LLMNR: Link-local Multicast Name Resolution -(non-Microsoft) */ -#define ipconfigUSE_LLMNR ( 0 ) // TODO - -/* Include support for NBNS: NetBIOS Name Service (Microsoft) */ -#define ipconfigUSE_NBNS ( 0 ) // TODO - -/* Include support for DNS caching. For TCP, having a small DNS cache is very -useful. When a cache is present, ipconfigDNS_REQUEST_ATTEMPTS can be kept low -and also DNS may use small timeouts. If a DNS reply comes in after the DNS -socket has been destroyed, the result will be stored into the cache. The next -call to FreeRTOS_gethostbyname() will return immediately, without even creating -a socket. */ -#define ipconfigUSE_DNS_CACHE ( 1 ) -#define ipconfigDNS_CACHE_NAME_LENGTH ( 254 ) -#define ipconfigDNS_CACHE_ENTRIES ( 6 ) -#define ipconfigDNS_REQUEST_ATTEMPTS ( 2 ) - -/* The IP stack executes it its own task (although any application task can make -use of its services through the published sockets API). ipconfigIP_TASK_PRIORITY -sets the priority of the task that executes the IP stack. The priority is a -standard FreeRTOS task priority so can take any value from 0 (the lowest -priority) to (configMAX_PRIORITIES - 1) (the highest priority). -configMAX_PRIORITIES is a standard FreeRTOS configuration parameter defined in -FreeRTOSConfig.h, not FreeRTOSIPConfig.h. Consideration needs to be given as to -the priority assigned to the task executing the IP stack relative to the -priority assigned to tasks that use the IP stack. */ -#define ipconfigIP_TASK_PRIORITY ( configMAX_PRIORITIES - 2 ) - -/* The size, in words (not bytes), of the stack allocated to the FreeRTOS+TCP -task. This setting is less important when the FreeRTOS Win32 simulator is used -as the Win32 simulator only stores a fixed amount of information on the task -stack. FreeRTOS includes optional stack overflow detection, see: -http://www.freertos.org/Stacks-and-stack-overflow-checking.html */ -#define ipconfigIP_TASK_STACK_SIZE_WORDS portTASK_STACK_DEPTH( prvIPTask ) - -/* ipconfigRAND32() is called by the IP stack to generate random numbers for -things such as a DHCP transaction number or initial sequence number. Random -number generation is performed via this macro to allow applications to use their -own random number generation method. For example, it might be possible to -generate a random number by sampling noise on an analogue input. */ -extern UBaseType_t uxRand(); -#define ipconfigRAND32() uxRand() - -/* If ipconfigUSE_NETWORK_EVENT_HOOK is set to 1 then FreeRTOS+TCP will call the -network event hook at the appropriate times. If ipconfigUSE_NETWORK_EVENT_HOOK -is not set to 1 then the network event hook will never be called. See -http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/API/vApplicationIPNetworkEventHook.shtml -*/ -#define ipconfigUSE_NETWORK_EVENT_HOOK 1 - -/* Sockets have a send block time attribute. If FreeRTOS_sendto() is called but -a network buffer cannot be obtained then the calling task is held in the Blocked -state (so other tasks can continue to executed) until either a network buffer -becomes available or the send block time expires. If the send block time expires -then the send operation is aborted. The maximum allowable send block time is -capped to the value set by ipconfigMAX_SEND_BLOCK_TIME_TICKS. Capping the -maximum allowable send block time prevents prevents a deadlock occurring when -all the network buffers are in use and the tasks that process (and subsequently -free) the network buffers are themselves blocked waiting for a network buffer. -ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in -milliseconds can be converted to a time in ticks by dividing the time in -milliseconds by portTICK_PERIOD_MS. */ -#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000 / portTICK_PERIOD_MS ) - -/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP -address, netmask, DNS server address and gateway address from a DHCP server. If -ipconfigUSE_DHCP is 0 then FreeRTOS+TCP will use a static IP address. The -stack will revert to using the static IP address even when ipconfigUSE_DHCP is -set to 1 if a valid configuration cannot be obtained from a DHCP server for any -reason. The static configuration used is that passed into the stack by the -FreeRTOS_IPInit() function call. */ -#define ipconfigUSE_DHCP 1 -#define ipconfigUSE_DHCP_HOOK 1 - -/* When ipconfigUSE_DHCP is set to 1, DHCP requests will be sent out at -increasing time intervals until either a reply is received from a DHCP server -and accepted, or the interval between transmissions reaches -ipconfigMAXIMUM_DISCOVER_TX_PERIOD. The IP stack will revert to using the -static IP address passed as a parameter to FreeRTOS_IPInit() if the -re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without -a DHCP reply being received. */ -#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 120000 / portTICK_PERIOD_MS ) - -/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP -stack can only send a UDP message to a remove IP address if it knowns the MAC -address associated with the IP address, or the MAC address of the router used to -contact the remote IP address. When a UDP message is received from a remote IP -address the MAC address and IP address are added to the ARP cache. When a UDP -message is sent to a remote IP address that does not already appear in the ARP -cache then the UDP message is replaced by a ARP message that solicits the -required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum -number of entries that can exist in the ARP table at any one time. */ -#define ipconfigARP_CACHE_ENTRIES 6 - -/* ARP requests that do not result in an ARP response will be re-transmitted a -maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is -aborted. */ -#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 ) - -/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP -table being created or refreshed and the entry being removed because it is stale. -New ARP requests are sent for ARP cache entries that are nearing their maximum -age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is -equal to 1500 seconds (or 25 minutes). */ -#define ipconfigMAX_ARP_AGE 150 - -/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling -routines, which are relatively large. To save code space the full -FreeRTOS_inet_addr() implementation is made optional, and a smaller and faster -alternative called FreeRTOS_inet_addr_quick() is provided. FreeRTOS_inet_addr() -takes an IP in decimal dot format (for example, "192.168.0.1") as its parameter. -FreeRTOS_inet_addr_quick() takes an IP address as four separate numerical octets -(for example, 192, 168, 0, 1) as its parameters. If -ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and -FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is -not set to 1 then only FreeRTOS_indet_addr_quick() is available. */ -#define ipconfigINCLUDE_FULL_INET_ADDR 1 - -/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that -are available to the IP stack. The total number of network buffers is limited -to ensure the total amount of RAM that can be consumed by the IP stack is capped -to a pre-determinable value. */ -#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 8*2 - -/* A FreeRTOS queue is used to send events from application tasks to the IP -stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can -be queued for processing at any one time. The event queue must be a minimum of -5 greater than the total number of network buffers. */ -#define ipconfigEVENT_QUEUE_LENGTH ( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 ) - -/* The address of a socket is the combination of its IP address and its port -number. FreeRTOS_bind() is used to manually allocate a port number to a socket -(to 'bind' the socket to a port), but manual binding is not normally necessary -for client sockets (those sockets that initiate outgoing connections rather than -wait for incoming connections on a known port number). If -ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 1 then calling -FreeRTOS_sendto() on a socket that has not yet been bound will result in the IP -stack automatically binding the socket to a port number from the range -socketAUTO_PORT_ALLOCATION_START_NUMBER to 0xffff. If -ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 0 then calling FreeRTOS_sendto() -on a socket that has not yet been bound will result in the send operation being -aborted. */ -#define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1 - -/* Defines the Time To Live (TTL) values used in outgoing UDP packets. */ -#define ipconfigUDP_TIME_TO_LIVE 128 -#define ipconfigTCP_TIME_TO_LIVE 128 /* also defined in FreeRTOSIPConfigDefaults.h */ - -/* USE_TCP: Use TCP and all its features */ -#define ipconfigUSE_TCP ( 1 ) - -/* USE_WIN: Let TCP use windowing mechanism. */ -#define ipconfigUSE_TCP_WIN ( 1 ) - -/* Use the RTO calculation required by RFC 6298 */ -#define ipconfigUSE_RFC_RTO ( 1 ) - -/* Use congestion control as specified by RFC 5681 */ -#define ipconfigUSE_CONGESTION_CONTROL ( 1 ) - -/* The MTU is the maximum number of bytes the payload of a network frame can -contain. For normal Ethernet V2 frames the maximum MTU is 1500. Setting a -lower value can save RAM, depending on the buffer management scheme used. If -ipconfigCAN_FRAGMENT_OUTGOING_PACKETS is 1 then (ipconfigNETWORK_MTU - 28) must -be divisible by 8. */ -#define ipconfigNETWORK_MTU 1500 - -/* Set ipconfigUSE_DNS to 1 to include a basic DNS client/resolver. DNS is used -through the FreeRTOS_gethostbyname() API function. */ -#define ipconfigUSE_DNS 1 - -/* If ipconfigREPLY_TO_INCOMING_PINGS is set to 1 then the IP stack will -generate replies to incoming ICMP echo (ping) requests. */ -#define ipconfigREPLY_TO_INCOMING_PINGS 1 - -/* If ipconfigSUPPORT_OUTGOING_PINGS is set to 1 then the -FreeRTOS_SendPingRequest() API function is available. */ -#define ipconfigSUPPORT_OUTGOING_PINGS 1 - -/* If ipconfigSUPPORT_SELECT_FUNCTION is set to 1 then the FreeRTOS_select() -(and associated) API function is available. */ -#define ipconfigSUPPORT_SELECT_FUNCTION 1 - -/* If ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES is set to 1 then Ethernet frames -that are not in Ethernet II format will be dropped. This option is included for -potential future IP stack developments. */ -#define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1 - -/* If ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES is set to 1 then it is the -responsibility of the Ethernet interface to filter out packets that are of no -interest. If the Ethernet interface does not implement this functionality, then -set ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES to 0 to have the IP stack -perform the filtering instead (it is much less efficient for the stack to do it -because the packet will already have been passed into the stack). If the -Ethernet driver does all the necessary filtering in hardware then software -filtering can be removed by using a value other than 1 or 0. */ -#define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1 - -/* The windows simulator cannot really simulate MAC interrupts, and needs to -block occasionally to allow other tasks to run. */ -#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS ) - - -#ifndef SL_WFX_USE_SECURE_LINK -/* Allocate space before Ethernet frames to hold the WF200 send frame - * request header. This allows FreeRTOS+TCP network buffers to be sent - * directly to the WF200 driver without allocating a new buffer and copying - * the frame from the FreeRTOS+TCP network buffer into it. - * - * The + 2 is so that the 14 byte Ethernet frame starts 2 bytes after a 32-bit - * boundary so that the IP header can begin on one. */ -#define ipconfigPACKET_FILLER_SIZE ( sizeof(sl_wfx_send_frame_req_t) + 2 ) -#endif - -/* Define the size of the pool of TCP window descriptors. On the average, each -TCP socket will use up to 2 x 6 descriptors, meaning that it can have 2 x 6 -outstanding packets (for Rx and Tx). When using up to 10 TP sockets -simultaneously, one could define TCP_WIN_SEG_COUNT as 120. */ -#define ipconfigTCP_WIN_SEG_COUNT 20 - -/* Each TCP socket has a circular buffers for Rx and Tx, which have a fixed -maximum size. Define the size of Rx buffer for TCP sockets. */ -#define ipconfigTCP_RX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) - -/* Define the size of Tx buffer for TCP sockets. */ -#define ipconfigTCP_TX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) - -/* Limit the amount of TCP segments sent out at a time per socket. -The default of 8 makes it very difficult for more than one output -stream to operate at a time. Setting it to 1 allows them to better -share time. */ -#define SEND_REPEATED_COUNT ( 8 ) - -/* When using call-back handlers, the driver may check if the handler points to -real program memory (RAM or flash) or just has a random non-zero value. */ -#define ipconfigIS_VALID_PROG_ADDRESS(x) ( (x) != NULL ) - -/* Include support for TCP hang protection. All sockets in a connecting or -disconnecting stage will timeout after a period of non-activity. */ -#define ipconfigTCP_HANG_PROTECTION ( 1 ) -#define ipconfigTCP_HANG_PROTECTION_TIME ( 30 ) - -/* Include support for TCP keep-alive messages. */ -#define ipconfigTCP_KEEP_ALIVE ( 1 ) -#define ipconfigTCP_KEEP_ALIVE_INTERVAL ( 20 ) /* in seconds */ - -#define portINLINE __inline - -#endif /* FREERTOS_IP_CONFIG_H */ +// Copyright 2019-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +/* + * FreeRTOS Kernel V10.2.1 + * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * http://www.FreeRTOS.org + * http://aws.amazon.com/freertos + * + * 1 tab == 4 spaces! + */ + + +/***************************************************************************** + * + * See the following URL for configuration information. + * http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Configuration.html + * + *****************************************************************************/ + +#ifndef FREERTOS_IP_CONFIG_H +#define FREERTOS_IP_CONFIG_H + +#define ipconfigUSE_WIFI 1 + +#if ipconfigUSE_WIFI +#include "sl_wfx_iot_wifi.h" +#include "sl_wfx_cmd_api.h" +#endif + +/* User defined network parameters */ +#define IPconfig_IP_ADDR_OCTET_0 10 +#define IPconfig_IP_ADDR_OCTET_1 0 +#define IPconfig_IP_ADDR_OCTET_2 0 +#define IPconfig_IP_ADDR_OCTET_3 1 + +#define IPconfig_NET_MASK_OCTET_0 255 +#define IPconfig_NET_MASK_OCTET_1 0 +#define IPconfig_NET_MASK_OCTET_2 0 +#define IPconfig_NET_MASK_OCTET_3 0 + +#define IPconfig_GATEWAY_OCTET_0 10 +#define IPconfig_GATEWAY_OCTET_1 0 +#define IPconfig_GATEWAY_OCTET_2 0 +#define IPconfig_GATEWAY_OCTET_3 1 + +#define IPconfig_DNS_SERVER_OCTET_0 8 +#define IPconfig_DNS_SERVER_OCTET_1 8 +#define IPconfig_DNS_SERVER_OCTET_2 8 +#define IPconfig_DNS_SERVER_OCTET_3 8 + +#define IPconfig_MAC_ADDR_OCTET_0 0x00 +#define IPconfig_MAC_ADDR_OCTET_1 0x00 +#define IPconfig_MAC_ADDR_OCTET_2 0x00 +#define IPconfig_MAC_ADDR_OCTET_3 0x00 +#define IPconfig_MAC_ADDR_OCTET_4 0x00 +#define IPconfig_MAC_ADDR_OCTET_5 0x00 + + +/* Prototype for the function used to print out. In this case it prints to the +console before the network is connected then a UDP port after the network has +connected. */ +extern void vLoggingPrintf( const char *pcFormatString, ... ); + +#define vLoggingPrintf(...) debug_printf(__VA_ARGS__) + +/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to +1 then FreeRTOS_debug_printf should be defined to the function used to print +out the debugging messages. */ +#define ipconfigHAS_DEBUG_PRINTF 0 +#if( ipconfigHAS_DEBUG_PRINTF == 1 ) + #define FreeRTOS_debug_printf(X) vLoggingPrintf X +#endif + +/* Set to 1 to print out non debugging messages, for example the output of the +FreeRTOS_netstat() command, and ping replies. If ipconfigHAS_PRINTF is set to 1 +then FreeRTOS_printf should be set to the function used to print out the +messages. */ +#define ipconfigHAS_PRINTF 0 +#if( ipconfigHAS_PRINTF == 1 ) + #define FreeRTOS_printf(X) vLoggingPrintf X +#endif + +/* Define the byte order of the target MCU (the MCU FreeRTOS+TCP is executing +on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ +#define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN + +/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) +then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +stack repeating the checksum calculations. */ +#define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 + +#define ipconfigZERO_COPY_RX_DRIVER 0 +#define ipconfigZERO_COPY_TX_DRIVER 0 + +#define ipconfigSUPPORT_SIGNALS 1 +//#define ipconfigSOCKET_HAS_USER_SEMAPHORE 1 +//#define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK 1 +//#define ipconfigUSE_CALLBACKS 1 + +/* Several API's will block until the result is known, or the action has been +performed, for example FreeRTOS_send() and FreeRTOS_recv(). The timeouts can be +set per socket, using setsockopt(). If not set, the times below will be +used as defaults. */ +#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME ( portMAX_DELAY ) +#define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME ( portMAX_DELAY ) + +/* Include support for LLMNR: Link-local Multicast Name Resolution +(non-Microsoft) */ +#define ipconfigUSE_LLMNR ( 0 ) // TODO + +/* Include support for NBNS: NetBIOS Name Service (Microsoft) */ +#define ipconfigUSE_NBNS ( 0 ) // TODO + +/* Include support for DNS caching. For TCP, having a small DNS cache is very +useful. When a cache is present, ipconfigDNS_REQUEST_ATTEMPTS can be kept low +and also DNS may use small timeouts. If a DNS reply comes in after the DNS +socket has been destroyed, the result will be stored into the cache. The next +call to FreeRTOS_gethostbyname() will return immediately, without even creating +a socket. */ +#define ipconfigUSE_DNS_CACHE ( 1 ) +#define ipconfigDNS_CACHE_NAME_LENGTH ( 254 ) +#define ipconfigDNS_CACHE_ENTRIES ( 6 ) +#define ipconfigDNS_REQUEST_ATTEMPTS ( 2 ) + +/* The IP stack executes it its own task (although any application task can make +use of its services through the published sockets API). ipconfigIP_TASK_PRIORITY +sets the priority of the task that executes the IP stack. The priority is a +standard FreeRTOS task priority so can take any value from 0 (the lowest +priority) to (configMAX_PRIORITIES - 1) (the highest priority). +configMAX_PRIORITIES is a standard FreeRTOS configuration parameter defined in +FreeRTOSConfig.h, not FreeRTOSIPConfig.h. Consideration needs to be given as to +the priority assigned to the task executing the IP stack relative to the +priority assigned to tasks that use the IP stack. */ +#define ipconfigIP_TASK_PRIORITY ( configMAX_PRIORITIES - 2 ) + +/* The size, in words (not bytes), of the stack allocated to the FreeRTOS+TCP +task. This setting is less important when the FreeRTOS Win32 simulator is used +as the Win32 simulator only stores a fixed amount of information on the task +stack. FreeRTOS includes optional stack overflow detection, see: +http://www.freertos.org/Stacks-and-stack-overflow-checking.html */ +#define ipconfigIP_TASK_STACK_SIZE_WORDS portTASK_STACK_DEPTH( prvIPTask ) + +/* ipconfigRAND32() is called by the IP stack to generate random numbers for +things such as a DHCP transaction number or initial sequence number. Random +number generation is performed via this macro to allow applications to use their +own random number generation method. For example, it might be possible to +generate a random number by sampling noise on an analogue input. */ +extern UBaseType_t uxRand(); +#define ipconfigRAND32() uxRand() + +/* If ipconfigUSE_NETWORK_EVENT_HOOK is set to 1 then FreeRTOS+TCP will call the +network event hook at the appropriate times. If ipconfigUSE_NETWORK_EVENT_HOOK +is not set to 1 then the network event hook will never be called. See +http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/API/vApplicationIPNetworkEventHook.shtml +*/ +#define ipconfigUSE_NETWORK_EVENT_HOOK 1 + +/* Sockets have a send block time attribute. If FreeRTOS_sendto() is called but +a network buffer cannot be obtained then the calling task is held in the Blocked +state (so other tasks can continue to executed) until either a network buffer +becomes available or the send block time expires. If the send block time expires +then the send operation is aborted. The maximum allowable send block time is +capped to the value set by ipconfigMAX_SEND_BLOCK_TIME_TICKS. Capping the +maximum allowable send block time prevents prevents a deadlock occurring when +all the network buffers are in use and the tasks that process (and subsequently +free) the network buffers are themselves blocked waiting for a network buffer. +ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in +milliseconds can be converted to a time in ticks by dividing the time in +milliseconds by portTICK_PERIOD_MS. */ +#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000 / portTICK_PERIOD_MS ) + +/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP +address, netmask, DNS server address and gateway address from a DHCP server. If +ipconfigUSE_DHCP is 0 then FreeRTOS+TCP will use a static IP address. The +stack will revert to using the static IP address even when ipconfigUSE_DHCP is +set to 1 if a valid configuration cannot be obtained from a DHCP server for any +reason. The static configuration used is that passed into the stack by the +FreeRTOS_IPInit() function call. */ +#define ipconfigUSE_DHCP 1 +#define ipconfigUSE_DHCP_HOOK 1 + +/* When ipconfigUSE_DHCP is set to 1, DHCP requests will be sent out at +increasing time intervals until either a reply is received from a DHCP server +and accepted, or the interval between transmissions reaches +ipconfigMAXIMUM_DISCOVER_TX_PERIOD. The IP stack will revert to using the +static IP address passed as a parameter to FreeRTOS_IPInit() if the +re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without +a DHCP reply being received. */ +#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 120000 / portTICK_PERIOD_MS ) + +/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP +stack can only send a UDP message to a remove IP address if it knowns the MAC +address associated with the IP address, or the MAC address of the router used to +contact the remote IP address. When a UDP message is received from a remote IP +address the MAC address and IP address are added to the ARP cache. When a UDP +message is sent to a remote IP address that does not already appear in the ARP +cache then the UDP message is replaced by a ARP message that solicits the +required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum +number of entries that can exist in the ARP table at any one time. */ +#define ipconfigARP_CACHE_ENTRIES 6 + +/* ARP requests that do not result in an ARP response will be re-transmitted a +maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is +aborted. */ +#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 ) + +/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP +table being created or refreshed and the entry being removed because it is stale. +New ARP requests are sent for ARP cache entries that are nearing their maximum +age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is +equal to 1500 seconds (or 25 minutes). */ +#define ipconfigMAX_ARP_AGE 150 + +/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling +routines, which are relatively large. To save code space the full +FreeRTOS_inet_addr() implementation is made optional, and a smaller and faster +alternative called FreeRTOS_inet_addr_quick() is provided. FreeRTOS_inet_addr() +takes an IP in decimal dot format (for example, "192.168.0.1") as its parameter. +FreeRTOS_inet_addr_quick() takes an IP address as four separate numerical octets +(for example, 192, 168, 0, 1) as its parameters. If +ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and +FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is +not set to 1 then only FreeRTOS_indet_addr_quick() is available. */ +#define ipconfigINCLUDE_FULL_INET_ADDR 1 + +/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that +are available to the IP stack. The total number of network buffers is limited +to ensure the total amount of RAM that can be consumed by the IP stack is capped +to a pre-determinable value. */ +#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 8*2 + +/* A FreeRTOS queue is used to send events from application tasks to the IP +stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can +be queued for processing at any one time. The event queue must be a minimum of +5 greater than the total number of network buffers. */ +#define ipconfigEVENT_QUEUE_LENGTH ( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 ) + +/* The address of a socket is the combination of its IP address and its port +number. FreeRTOS_bind() is used to manually allocate a port number to a socket +(to 'bind' the socket to a port), but manual binding is not normally necessary +for client sockets (those sockets that initiate outgoing connections rather than +wait for incoming connections on a known port number). If +ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 1 then calling +FreeRTOS_sendto() on a socket that has not yet been bound will result in the IP +stack automatically binding the socket to a port number from the range +socketAUTO_PORT_ALLOCATION_START_NUMBER to 0xffff. If +ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 0 then calling FreeRTOS_sendto() +on a socket that has not yet been bound will result in the send operation being +aborted. */ +#define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1 + +/* Defines the Time To Live (TTL) values used in outgoing UDP packets. */ +#define ipconfigUDP_TIME_TO_LIVE 128 +#define ipconfigTCP_TIME_TO_LIVE 128 /* also defined in FreeRTOSIPConfigDefaults.h */ + +/* USE_TCP: Use TCP and all its features */ +#define ipconfigUSE_TCP ( 1 ) + +/* USE_WIN: Let TCP use windowing mechanism. */ +#define ipconfigUSE_TCP_WIN ( 1 ) + +/* Use the RTO calculation required by RFC 6298 */ +#define ipconfigUSE_RFC_RTO ( 1 ) + +/* Use congestion control as specified by RFC 5681 */ +#define ipconfigUSE_CONGESTION_CONTROL ( 1 ) + +/* The MTU is the maximum number of bytes the payload of a network frame can +contain. For normal Ethernet V2 frames the maximum MTU is 1500. Setting a +lower value can save RAM, depending on the buffer management scheme used. If +ipconfigCAN_FRAGMENT_OUTGOING_PACKETS is 1 then (ipconfigNETWORK_MTU - 28) must +be divisible by 8. */ +#define ipconfigNETWORK_MTU 1500 + +/* Set ipconfigUSE_DNS to 1 to include a basic DNS client/resolver. DNS is used +through the FreeRTOS_gethostbyname() API function. */ +#define ipconfigUSE_DNS 1 + +/* If ipconfigREPLY_TO_INCOMING_PINGS is set to 1 then the IP stack will +generate replies to incoming ICMP echo (ping) requests. */ +#define ipconfigREPLY_TO_INCOMING_PINGS 1 + +/* If ipconfigSUPPORT_OUTGOING_PINGS is set to 1 then the +FreeRTOS_SendPingRequest() API function is available. */ +#define ipconfigSUPPORT_OUTGOING_PINGS 1 + +/* If ipconfigSUPPORT_SELECT_FUNCTION is set to 1 then the FreeRTOS_select() +(and associated) API function is available. */ +#define ipconfigSUPPORT_SELECT_FUNCTION 1 + +/* If ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES is set to 1 then Ethernet frames +that are not in Ethernet II format will be dropped. This option is included for +potential future IP stack developments. */ +#define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1 + +/* If ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES is set to 1 then it is the +responsibility of the Ethernet interface to filter out packets that are of no +interest. If the Ethernet interface does not implement this functionality, then +set ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES to 0 to have the IP stack +perform the filtering instead (it is much less efficient for the stack to do it +because the packet will already have been passed into the stack). If the +Ethernet driver does all the necessary filtering in hardware then software +filtering can be removed by using a value other than 1 or 0. */ +#define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1 + +/* The windows simulator cannot really simulate MAC interrupts, and needs to +block occasionally to allow other tasks to run. */ +#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS ) + + +#ifndef SL_WFX_USE_SECURE_LINK +/* Allocate space before Ethernet frames to hold the WF200 send frame + * request header. This allows FreeRTOS+TCP network buffers to be sent + * directly to the WF200 driver without allocating a new buffer and copying + * the frame from the FreeRTOS+TCP network buffer into it. + * + * The + 2 is so that the 14 byte Ethernet frame starts 2 bytes after a 32-bit + * boundary so that the IP header can begin on one. */ +#define ipconfigPACKET_FILLER_SIZE ( sizeof(sl_wfx_send_frame_req_t) + 2 ) +#endif + +/* Define the size of the pool of TCP window descriptors. On the average, each +TCP socket will use up to 2 x 6 descriptors, meaning that it can have 2 x 6 +outstanding packets (for Rx and Tx). When using up to 10 TP sockets +simultaneously, one could define TCP_WIN_SEG_COUNT as 120. */ +#define ipconfigTCP_WIN_SEG_COUNT 20 + +/* Each TCP socket has a circular buffers for Rx and Tx, which have a fixed +maximum size. Define the size of Rx buffer for TCP sockets. */ +#define ipconfigTCP_RX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) + +/* Define the size of Tx buffer for TCP sockets. */ +#define ipconfigTCP_TX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) + +/* Limit the amount of TCP segments sent out at a time per socket. +The default of 8 makes it very difficult for more than one output +stream to operate at a time. Setting it to 1 allows them to better +share time. */ +#define SEND_REPEATED_COUNT ( 8 ) + +/* When using call-back handlers, the driver may check if the handler points to +real program memory (RAM or flash) or just has a random non-zero value. */ +#define ipconfigIS_VALID_PROG_ADDRESS(x) ( (x) != NULL ) + +/* Include support for TCP hang protection. All sockets in a connecting or +disconnecting stage will timeout after a period of non-activity. */ +#define ipconfigTCP_HANG_PROTECTION ( 1 ) +#define ipconfigTCP_HANG_PROTECTION_TIME ( 30 ) + +/* Include support for TCP keep-alive messages. */ +#define ipconfigTCP_KEEP_ALIVE ( 1 ) +#define ipconfigTCP_KEEP_ALIVE_INTERVAL ( 20 ) /* in seconds */ + +#define portINLINE __inline + +#endif /* FREERTOS_IP_CONFIG_H */ diff --git a/test/rtos_drivers/usb/src/board_init.c b/test/rtos_drivers/usb/src/board_init.c index 7a70fd8ed..8cdf6e007 100644 --- a/test/rtos_drivers/usb/src/board_init.c +++ b/test/rtos_drivers/usb/src/board_init.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/test/rtos_drivers/usb/src/board_init.h b/test/rtos_drivers/usb/src/board_init.h index 8ddb49b85..17716931b 100644 --- a/test/rtos_drivers/usb/src/board_init.h +++ b/test/rtos_drivers/usb/src/board_init.h @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef BOARD_INIT_H_ diff --git a/test/rtos_drivers/usb/src/individual_tests/individual_tests.h b/test/rtos_drivers/usb/src/individual_tests/individual_tests.h index 5c5a7a35d..3817e1245 100644 --- a/test/rtos_drivers/usb/src/individual_tests/individual_tests.h +++ b/test/rtos_drivers/usb/src/individual_tests/individual_tests.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef INDIVIDUAL_TESTS_H_ diff --git a/test/rtos_drivers/usb/src/individual_tests/usb/local/usb_descriptors.h b/test/rtos_drivers/usb/src/individual_tests/usb/local/usb_descriptors.h index 806de44cf..85d1e9558 100644 --- a/test/rtos_drivers/usb/src/individual_tests/usb/local/usb_descriptors.h +++ b/test/rtos_drivers/usb/src/individual_tests/usb/local/usb_descriptors.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef USB_DESCRIPTORS_H_ diff --git a/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.c b/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.c index 029688176..3bea8c9de 100644 --- a/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.c +++ b/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.h b/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.h index 82c947d67..db9b0ca17 100644 --- a/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.h +++ b/test/rtos_drivers/usb/src/individual_tests/usb/usb_test.h @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef USB_TEST_H_ diff --git a/test/rtos_drivers/usb/src/main.c b/test/rtos_drivers/usb/src/main.c index 90bf30501..de4bdf20b 100644 --- a/test/rtos_drivers/usb/src/main.c +++ b/test/rtos_drivers/usb/src/main.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/usb/src/rtos_test/rtos_test_utils.h b/test/rtos_drivers/usb/src/rtos_test/rtos_test_utils.h index 3321507f3..278ed176a 100644 --- a/test/rtos_drivers/usb/src/rtos_test/rtos_test_utils.h +++ b/test/rtos_drivers/usb/src/rtos_test/rtos_test_utils.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_TEST_UTILS_H_ diff --git a/test/rtos_drivers/usb/test_verify_usb_results.py b/test/rtos_drivers/usb/test_verify_usb_results.py index b3733cd1e..18c7240b5 100644 --- a/test/rtos_drivers/usb/test_verify_usb_results.py +++ b/test/rtos_drivers/usb/test_verify_usb_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import re diff --git a/test/rtos_drivers/wifi/filesystem_support/wifi_profile.py b/test/rtos_drivers/wifi/filesystem_support/wifi_profile.py index 769985a6b..fc300fb1b 100755 --- a/test/rtos_drivers/wifi/filesystem_support/wifi_profile.py +++ b/test/rtos_drivers/wifi/filesystem_support/wifi_profile.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 -# Copyright (c) 2023, XMOS Ltd, All rights reserved +# Copyright 2020-2023 XMOS LIMITED. +# This Software is subject to the terms of the XMOS Public Licence: Version 1. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import getpass diff --git a/test/rtos_drivers/wifi/python/file_regex_parser.py b/test/rtos_drivers/wifi/python/file_regex_parser.py index b4fbdc21b..8b9e32f53 100644 --- a/test/rtos_drivers/wifi/python/file_regex_parser.py +++ b/test/rtos_drivers/wifi/python/file_regex_parser.py @@ -1,4 +1,4 @@ -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import re diff --git a/test/rtos_drivers/wifi/python/parse_test_output.py b/test/rtos_drivers/wifi/python/parse_test_output.py index 3cae6cb1b..0486996ef 100644 --- a/test/rtos_drivers/wifi/python/parse_test_output.py +++ b/test/rtos_drivers/wifi/python/parse_test_output.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import argparse diff --git a/test/rtos_drivers/wifi/src/FreeRTOSConfig.h b/test/rtos_drivers/wifi/src/FreeRTOSConfig.h index 8fa68ec50..0c9156f2e 100644 --- a/test/rtos_drivers/wifi/src/FreeRTOSConfig.h +++ b/test/rtos_drivers/wifi/src/FreeRTOSConfig.h @@ -1,118 +1,120 @@ -#ifndef FREERTOS_CONFIG_H -#define FREERTOS_CONFIG_H - -/* Here is a good place to include header files that are required across -your application. */ -#include "platform.h" - -/* - * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. - * the i2s task should probably not be using a FreeRTOS stream buffer. - */ -#define sbRECEIVE_COMPLETED( pxStreamBuffer ) - -#define configUSE_PREEMPTION 1 -#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 -#define configUSE_TICKLESS_IDLE 0 -#define configCPU_CLOCK_HZ 100000000 -#define configNUM_CORES 5 -#define configTICK_RATE_HZ 1000 -#define configMAX_PRIORITIES 32 -#define configRUN_MULTIPLE_PRIORITIES 1 -#define configUSE_TASK_PREEMPTION_DISABLE 1 -#define configUSE_CORE_AFFINITY 1 -#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 -#define configMAX_TASK_NAME_LEN 16 -#define configUSE_16_BIT_TICKS 0 -#define configIDLE_SHOULD_YIELD 1 -#define configUSE_TASK_NOTIFICATIONS 1 -#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 -#define configUSE_MUTEXES 1 -#define configUSE_RECURSIVE_MUTEXES 1 -#define configUSE_COUNTING_SEMAPHORES 1 -#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ -#define configQUEUE_REGISTRY_SIZE 10 -#define configUSE_QUEUE_SETS 1 -#define configUSE_TIME_SLICING 1 -#define configUSE_NEWLIB_REENTRANT 0 -#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ -#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 -#define configSTACK_DEPTH_TYPE uint32_t -#define configMESSAGE_BUFFER_LENGTH_TYPE size_t - - -/* Memory allocation related definitions. */ -#define configSUPPORT_STATIC_ALLOCATION 0 -#define configSUPPORT_DYNAMIC_ALLOCATION 1 -#define configTOTAL_HEAP_SIZE 128*1024 -#define configAPPLICATION_ALLOCATED_HEAP 0 - -/* Hook function related definitions. */ -#define configUSE_IDLE_HOOK 0 -#define configUSE_TICK_HOOK 0 -#define configCHECK_FOR_STACK_OVERFLOW 1 -#define configUSE_MALLOC_FAILED_HOOK 1 -#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 -#define configUSE_CORE_INIT_HOOK 0 - -/* Run time and task stats gathering related definitions. */ -#define configGENERATE_RUN_TIME_STATS 1 -#define configUSE_TRACE_FACILITY 1 -#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ - -/* Co-routine related definitions. */ -#define configUSE_CO_ROUTINES 0 -#define configMAX_CO_ROUTINE_PRIORITIES 1 - -/* Software timer related definitions. */ -#define configUSE_TIMERS 1 -#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) -#define configTIMER_QUEUE_LENGTH 10 -#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) - -/* Define to trap errors during development. */ -#define configASSERT(x) xassert(x) - -/* Define to enable debug_printf() */ -#define configENABLE_DEBUG_PRINTF 1 - -/* Define to map sprintf and snprintf to the - * lite versions in lib_rtos_support */ - #include -#define configUSE_DEBUG_SPRINTF 1 - -/* Define to enable debug prints from tasks.c */ -#if ON_TILE(0) -#define configTASKS_DEBUG 0 -#endif -#if ON_TILE(1) -#define configTASKS_DEBUG 0 -#endif - -/* FreeRTOS MPU specific definitions. */ -#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 - -/* Optional functions - most linkers will remove unused functions anyway. */ -#define INCLUDE_vTaskPrioritySet 1 -#define INCLUDE_uxTaskPriorityGet 1 -#define INCLUDE_vTaskDelete 1 -#define INCLUDE_vTaskSuspend 1 -#define INCLUDE_xResumeFromISR 1 -#define INCLUDE_vTaskDelayUntil 1 -#define INCLUDE_vTaskDelay 1 -#define INCLUDE_xTaskGetSchedulerState 1 -#define INCLUDE_xTaskGetCurrentTaskHandle 1 -#define INCLUDE_uxTaskGetStackHighWaterMark 1 -#define INCLUDE_xTaskGetIdleTaskHandle 1 -#define INCLUDE_eTaskGetState 1 -#define INCLUDE_xEventGroupSetBitFromISR 1 -#define INCLUDE_xTimerPendFunctionCall 1 -#define INCLUDE_xTaskAbortDelay 1 -#define INCLUDE_xTaskGetHandle 1 -#define INCLUDE_xTaskResumeFromISR 1 -#define INCLUDE_xQueueGetMutexHolder 1 - -/* A header file that defines trace macro can be included here. */ -// #include "xcore_trace.h" - -#endif /* FREERTOS_CONFIG_H */ +// Copyright 2019-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +#ifndef FREERTOS_CONFIG_H +#define FREERTOS_CONFIG_H + +/* Here is a good place to include header files that are required across +your application. */ +#include "platform.h" + +/* + * TODO remove this. Just a hack to prevent the i2s task from calling vTaskSuspendAll(). Not a good solution. + * the i2s task should probably not be using a FreeRTOS stream buffer. + */ +#define sbRECEIVE_COMPLETED( pxStreamBuffer ) + +#define configUSE_PREEMPTION 1 +#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0 +#define configUSE_TICKLESS_IDLE 0 +#define configCPU_CLOCK_HZ 100000000 +#define configNUM_CORES 5 +#define configTICK_RATE_HZ 1000 +#define configMAX_PRIORITIES 32 +#define configRUN_MULTIPLE_PRIORITIES 1 +#define configUSE_TASK_PREEMPTION_DISABLE 1 +#define configUSE_CORE_AFFINITY 1 +#define configMINIMAL_STACK_SIZE ( configSTACK_DEPTH_TYPE ) 256 +#define configMAX_TASK_NAME_LEN 16 +#define configUSE_16_BIT_TICKS 0 +#define configIDLE_SHOULD_YIELD 1 +#define configUSE_TASK_NOTIFICATIONS 1 +#define configTASK_NOTIFICATION_ARRAY_ENTRIES 2 +#define configUSE_MUTEXES 1 +#define configUSE_RECURSIVE_MUTEXES 1 +#define configUSE_COUNTING_SEMAPHORES 1 +#define configUSE_ALTERNATIVE_API 0 /* Deprecated! */ +#define configQUEUE_REGISTRY_SIZE 10 +#define configUSE_QUEUE_SETS 1 +#define configUSE_TIME_SLICING 1 +#define configUSE_NEWLIB_REENTRANT 0 +#define configENABLE_BACKWARD_COMPATIBILITY 1 /* Required for FreeRTOS_TCP_WIN.c TODO: active closed bug, may have been fixed upstream */ +#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 5 +#define configSTACK_DEPTH_TYPE uint32_t +#define configMESSAGE_BUFFER_LENGTH_TYPE size_t + + +/* Memory allocation related definitions. */ +#define configSUPPORT_STATIC_ALLOCATION 0 +#define configSUPPORT_DYNAMIC_ALLOCATION 1 +#define configTOTAL_HEAP_SIZE 128*1024 +#define configAPPLICATION_ALLOCATED_HEAP 0 + +/* Hook function related definitions. */ +#define configUSE_IDLE_HOOK 0 +#define configUSE_TICK_HOOK 0 +#define configCHECK_FOR_STACK_OVERFLOW 1 +#define configUSE_MALLOC_FAILED_HOOK 1 +#define configUSE_DAEMON_TASK_STARTUP_HOOK 0 +#define configUSE_CORE_INIT_HOOK 0 + +/* Run time and task stats gathering related definitions. */ +#define configGENERATE_RUN_TIME_STATS 1 +#define configUSE_TRACE_FACILITY 1 +#define configUSE_STATS_FORMATTING_FUNCTIONS 2 /* Setting to 2 does not include in tasks.c */ + +/* Co-routine related definitions. */ +#define configUSE_CO_ROUTINES 0 +#define configMAX_CO_ROUTINE_PRIORITIES 1 + +/* Software timer related definitions. */ +#define configUSE_TIMERS 1 +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) +#define configTIMER_QUEUE_LENGTH 10 +#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE << 2 ) + +/* Define to trap errors during development. */ +#define configASSERT(x) xassert(x) + +/* Define to enable debug_printf() */ +#define configENABLE_DEBUG_PRINTF 1 + +/* Define to map sprintf and snprintf to the + * lite versions in lib_rtos_support */ + #include +#define configUSE_DEBUG_SPRINTF 1 + +/* Define to enable debug prints from tasks.c */ +#if ON_TILE(0) +#define configTASKS_DEBUG 0 +#endif +#if ON_TILE(1) +#define configTASKS_DEBUG 0 +#endif + +/* FreeRTOS MPU specific definitions. */ +#define configINCLUDE_APPLICATION_DEFINED_PRIVILEGED_FUNCTIONS 0 + +/* Optional functions - most linkers will remove unused functions anyway. */ +#define INCLUDE_vTaskPrioritySet 1 +#define INCLUDE_uxTaskPriorityGet 1 +#define INCLUDE_vTaskDelete 1 +#define INCLUDE_vTaskSuspend 1 +#define INCLUDE_xResumeFromISR 1 +#define INCLUDE_vTaskDelayUntil 1 +#define INCLUDE_vTaskDelay 1 +#define INCLUDE_xTaskGetSchedulerState 1 +#define INCLUDE_xTaskGetCurrentTaskHandle 1 +#define INCLUDE_uxTaskGetStackHighWaterMark 1 +#define INCLUDE_xTaskGetIdleTaskHandle 1 +#define INCLUDE_eTaskGetState 1 +#define INCLUDE_xEventGroupSetBitFromISR 1 +#define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetHandle 1 +#define INCLUDE_xTaskResumeFromISR 1 +#define INCLUDE_xQueueGetMutexHolder 1 + +/* A header file that defines trace macro can be included here. */ +// #include "xcore_trace.h" + +#endif /* FREERTOS_CONFIG_H */ diff --git a/test/rtos_drivers/wifi/src/FreeRTOSIPConfig.h b/test/rtos_drivers/wifi/src/FreeRTOSIPConfig.h index 86dce284d..829762d7e 100644 --- a/test/rtos_drivers/wifi/src/FreeRTOSIPConfig.h +++ b/test/rtos_drivers/wifi/src/FreeRTOSIPConfig.h @@ -1,372 +1,374 @@ -/* - * FreeRTOS Kernel V10.2.1 - * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of - * the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS - * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR - * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER - * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN - * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * - * http://www.FreeRTOS.org - * http://aws.amazon.com/freertos - * - * 1 tab == 4 spaces! - */ - - -/***************************************************************************** - * - * See the following URL for configuration information. - * http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Configuration.html - * - *****************************************************************************/ - -#ifndef FREERTOS_IP_CONFIG_H -#define FREERTOS_IP_CONFIG_H - -#define ipconfigUSE_WIFI 1 - -#if ipconfigUSE_WIFI -#include "sl_wfx_iot_wifi.h" -#include "sl_wfx_cmd_api.h" -#endif - -/* User defined network parameters */ -#define IPconfig_IP_ADDR_OCTET_0 10 -#define IPconfig_IP_ADDR_OCTET_1 0 -#define IPconfig_IP_ADDR_OCTET_2 0 -#define IPconfig_IP_ADDR_OCTET_3 1 - -#define IPconfig_NET_MASK_OCTET_0 255 -#define IPconfig_NET_MASK_OCTET_1 0 -#define IPconfig_NET_MASK_OCTET_2 0 -#define IPconfig_NET_MASK_OCTET_3 0 - -#define IPconfig_GATEWAY_OCTET_0 10 -#define IPconfig_GATEWAY_OCTET_1 0 -#define IPconfig_GATEWAY_OCTET_2 0 -#define IPconfig_GATEWAY_OCTET_3 1 - -#define IPconfig_DNS_SERVER_OCTET_0 8 -#define IPconfig_DNS_SERVER_OCTET_1 8 -#define IPconfig_DNS_SERVER_OCTET_2 8 -#define IPconfig_DNS_SERVER_OCTET_3 8 - -#define IPconfig_MAC_ADDR_OCTET_0 0x00 -#define IPconfig_MAC_ADDR_OCTET_1 0x00 -#define IPconfig_MAC_ADDR_OCTET_2 0x00 -#define IPconfig_MAC_ADDR_OCTET_3 0x00 -#define IPconfig_MAC_ADDR_OCTET_4 0x00 -#define IPconfig_MAC_ADDR_OCTET_5 0x00 - - -/* Prototype for the function used to print out. In this case it prints to the -console before the network is connected then a UDP port after the network has -connected. */ -extern void vLoggingPrintf( const char *pcFormatString, ... ); - -#define vLoggingPrintf(...) debug_printf(__VA_ARGS__) - -/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to -1 then FreeRTOS_debug_printf should be defined to the function used to print -out the debugging messages. */ -#define ipconfigHAS_DEBUG_PRINTF 0 -#if( ipconfigHAS_DEBUG_PRINTF == 1 ) - #define FreeRTOS_debug_printf(X) vLoggingPrintf X -#endif - -/* Set to 1 to print out non debugging messages, for example the output of the -FreeRTOS_netstat() command, and ping replies. If ipconfigHAS_PRINTF is set to 1 -then FreeRTOS_printf should be set to the function used to print out the -messages. */ -#define ipconfigHAS_PRINTF 0 -#if( ipconfigHAS_PRINTF == 1 ) - #define FreeRTOS_printf(X) vLoggingPrintf X -#endif - -/* Define the byte order of the target MCU (the MCU FreeRTOS+TCP is executing -on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ -#define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN - -/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) -then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software -stack repeating the checksum calculations. */ -#define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 - -#define ipconfigZERO_COPY_RX_DRIVER 0 -#define ipconfigZERO_COPY_TX_DRIVER 0 - -#define ipconfigSUPPORT_SIGNALS 1 -//#define ipconfigSOCKET_HAS_USER_SEMAPHORE 1 -//#define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK 1 -//#define ipconfigUSE_CALLBACKS 1 - -/* Several API's will block until the result is known, or the action has been -performed, for example FreeRTOS_send() and FreeRTOS_recv(). The timeouts can be -set per socket, using setsockopt(). If not set, the times below will be -used as defaults. */ -#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME ( portMAX_DELAY ) -#define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME ( portMAX_DELAY ) - -/* Include support for LLMNR: Link-local Multicast Name Resolution -(non-Microsoft) */ -#define ipconfigUSE_LLMNR ( 0 ) // TODO - -/* Include support for NBNS: NetBIOS Name Service (Microsoft) */ -#define ipconfigUSE_NBNS ( 0 ) // TODO - -/* Include support for DNS caching. For TCP, having a small DNS cache is very -useful. When a cache is present, ipconfigDNS_REQUEST_ATTEMPTS can be kept low -and also DNS may use small timeouts. If a DNS reply comes in after the DNS -socket has been destroyed, the result will be stored into the cache. The next -call to FreeRTOS_gethostbyname() will return immediately, without even creating -a socket. */ -#define ipconfigUSE_DNS_CACHE ( 1 ) -#define ipconfigDNS_CACHE_NAME_LENGTH ( 254 ) -#define ipconfigDNS_CACHE_ENTRIES ( 6 ) -#define ipconfigDNS_REQUEST_ATTEMPTS ( 2 ) - -/* The IP stack executes it its own task (although any application task can make -use of its services through the published sockets API). ipconfigIP_TASK_PRIORITY -sets the priority of the task that executes the IP stack. The priority is a -standard FreeRTOS task priority so can take any value from 0 (the lowest -priority) to (configMAX_PRIORITIES - 1) (the highest priority). -configMAX_PRIORITIES is a standard FreeRTOS configuration parameter defined in -FreeRTOSConfig.h, not FreeRTOSIPConfig.h. Consideration needs to be given as to -the priority assigned to the task executing the IP stack relative to the -priority assigned to tasks that use the IP stack. */ -#define ipconfigIP_TASK_PRIORITY ( configMAX_PRIORITIES - 2 ) - -/* The size, in words (not bytes), of the stack allocated to the FreeRTOS+TCP -task. This setting is less important when the FreeRTOS Win32 simulator is used -as the Win32 simulator only stores a fixed amount of information on the task -stack. FreeRTOS includes optional stack overflow detection, see: -http://www.freertos.org/Stacks-and-stack-overflow-checking.html */ -#define ipconfigIP_TASK_STACK_SIZE_WORDS portTASK_STACK_DEPTH( prvIPTask ) - -/* ipconfigRAND32() is called by the IP stack to generate random numbers for -things such as a DHCP transaction number or initial sequence number. Random -number generation is performed via this macro to allow applications to use their -own random number generation method. For example, it might be possible to -generate a random number by sampling noise on an analogue input. */ -extern UBaseType_t uxRand(); -#define ipconfigRAND32() uxRand() - -/* If ipconfigUSE_NETWORK_EVENT_HOOK is set to 1 then FreeRTOS+TCP will call the -network event hook at the appropriate times. If ipconfigUSE_NETWORK_EVENT_HOOK -is not set to 1 then the network event hook will never be called. See -http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/API/vApplicationIPNetworkEventHook.shtml -*/ -#define ipconfigUSE_NETWORK_EVENT_HOOK 1 - -/* Sockets have a send block time attribute. If FreeRTOS_sendto() is called but -a network buffer cannot be obtained then the calling task is held in the Blocked -state (so other tasks can continue to executed) until either a network buffer -becomes available or the send block time expires. If the send block time expires -then the send operation is aborted. The maximum allowable send block time is -capped to the value set by ipconfigMAX_SEND_BLOCK_TIME_TICKS. Capping the -maximum allowable send block time prevents prevents a deadlock occurring when -all the network buffers are in use and the tasks that process (and subsequently -free) the network buffers are themselves blocked waiting for a network buffer. -ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in -milliseconds can be converted to a time in ticks by dividing the time in -milliseconds by portTICK_PERIOD_MS. */ -#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000 / portTICK_PERIOD_MS ) - -/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP -address, netmask, DNS server address and gateway address from a DHCP server. If -ipconfigUSE_DHCP is 0 then FreeRTOS+TCP will use a static IP address. The -stack will revert to using the static IP address even when ipconfigUSE_DHCP is -set to 1 if a valid configuration cannot be obtained from a DHCP server for any -reason. The static configuration used is that passed into the stack by the -FreeRTOS_IPInit() function call. */ -#define ipconfigUSE_DHCP 1 -#define ipconfigUSE_DHCP_HOOK 1 - -/* When ipconfigUSE_DHCP is set to 1, DHCP requests will be sent out at -increasing time intervals until either a reply is received from a DHCP server -and accepted, or the interval between transmissions reaches -ipconfigMAXIMUM_DISCOVER_TX_PERIOD. The IP stack will revert to using the -static IP address passed as a parameter to FreeRTOS_IPInit() if the -re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without -a DHCP reply being received. */ -#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 120000 / portTICK_PERIOD_MS ) - -/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP -stack can only send a UDP message to a remove IP address if it knowns the MAC -address associated with the IP address, or the MAC address of the router used to -contact the remote IP address. When a UDP message is received from a remote IP -address the MAC address and IP address are added to the ARP cache. When a UDP -message is sent to a remote IP address that does not already appear in the ARP -cache then the UDP message is replaced by a ARP message that solicits the -required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum -number of entries that can exist in the ARP table at any one time. */ -#define ipconfigARP_CACHE_ENTRIES 6 - -/* ARP requests that do not result in an ARP response will be re-transmitted a -maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is -aborted. */ -#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 ) - -/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP -table being created or refreshed and the entry being removed because it is stale. -New ARP requests are sent for ARP cache entries that are nearing their maximum -age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is -equal to 1500 seconds (or 25 minutes). */ -#define ipconfigMAX_ARP_AGE 150 - -/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling -routines, which are relatively large. To save code space the full -FreeRTOS_inet_addr() implementation is made optional, and a smaller and faster -alternative called FreeRTOS_inet_addr_quick() is provided. FreeRTOS_inet_addr() -takes an IP in decimal dot format (for example, "192.168.0.1") as its parameter. -FreeRTOS_inet_addr_quick() takes an IP address as four separate numerical octets -(for example, 192, 168, 0, 1) as its parameters. If -ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and -FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is -not set to 1 then only FreeRTOS_indet_addr_quick() is available. */ -#define ipconfigINCLUDE_FULL_INET_ADDR 1 - -/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that -are available to the IP stack. The total number of network buffers is limited -to ensure the total amount of RAM that can be consumed by the IP stack is capped -to a pre-determinable value. */ -#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 8*2 - -/* A FreeRTOS queue is used to send events from application tasks to the IP -stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can -be queued for processing at any one time. The event queue must be a minimum of -5 greater than the total number of network buffers. */ -#define ipconfigEVENT_QUEUE_LENGTH ( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 ) - -/* The address of a socket is the combination of its IP address and its port -number. FreeRTOS_bind() is used to manually allocate a port number to a socket -(to 'bind' the socket to a port), but manual binding is not normally necessary -for client sockets (those sockets that initiate outgoing connections rather than -wait for incoming connections on a known port number). If -ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 1 then calling -FreeRTOS_sendto() on a socket that has not yet been bound will result in the IP -stack automatically binding the socket to a port number from the range -socketAUTO_PORT_ALLOCATION_START_NUMBER to 0xffff. If -ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 0 then calling FreeRTOS_sendto() -on a socket that has not yet been bound will result in the send operation being -aborted. */ -#define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1 - -/* Defines the Time To Live (TTL) values used in outgoing UDP packets. */ -#define ipconfigUDP_TIME_TO_LIVE 128 -#define ipconfigTCP_TIME_TO_LIVE 128 /* also defined in FreeRTOSIPConfigDefaults.h */ - -/* USE_TCP: Use TCP and all its features */ -#define ipconfigUSE_TCP ( 1 ) - -/* USE_WIN: Let TCP use windowing mechanism. */ -#define ipconfigUSE_TCP_WIN ( 1 ) - -/* Use the RTO calculation required by RFC 6298 */ -#define ipconfigUSE_RFC_RTO ( 1 ) - -/* Use congestion control as specified by RFC 5681 */ -#define ipconfigUSE_CONGESTION_CONTROL ( 1 ) - -/* The MTU is the maximum number of bytes the payload of a network frame can -contain. For normal Ethernet V2 frames the maximum MTU is 1500. Setting a -lower value can save RAM, depending on the buffer management scheme used. If -ipconfigCAN_FRAGMENT_OUTGOING_PACKETS is 1 then (ipconfigNETWORK_MTU - 28) must -be divisible by 8. */ -#define ipconfigNETWORK_MTU 1500 - -/* Set ipconfigUSE_DNS to 1 to include a basic DNS client/resolver. DNS is used -through the FreeRTOS_gethostbyname() API function. */ -#define ipconfigUSE_DNS 1 - -/* If ipconfigREPLY_TO_INCOMING_PINGS is set to 1 then the IP stack will -generate replies to incoming ICMP echo (ping) requests. */ -#define ipconfigREPLY_TO_INCOMING_PINGS 1 - -/* If ipconfigSUPPORT_OUTGOING_PINGS is set to 1 then the -FreeRTOS_SendPingRequest() API function is available. */ -#define ipconfigSUPPORT_OUTGOING_PINGS 1 - -/* If ipconfigSUPPORT_SELECT_FUNCTION is set to 1 then the FreeRTOS_select() -(and associated) API function is available. */ -#define ipconfigSUPPORT_SELECT_FUNCTION 1 - -/* If ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES is set to 1 then Ethernet frames -that are not in Ethernet II format will be dropped. This option is included for -potential future IP stack developments. */ -#define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1 - -/* If ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES is set to 1 then it is the -responsibility of the Ethernet interface to filter out packets that are of no -interest. If the Ethernet interface does not implement this functionality, then -set ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES to 0 to have the IP stack -perform the filtering instead (it is much less efficient for the stack to do it -because the packet will already have been passed into the stack). If the -Ethernet driver does all the necessary filtering in hardware then software -filtering can be removed by using a value other than 1 or 0. */ -#define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1 - -/* The windows simulator cannot really simulate MAC interrupts, and needs to -block occasionally to allow other tasks to run. */ -#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS ) - - -#ifndef SL_WFX_USE_SECURE_LINK -/* Allocate space before Ethernet frames to hold the WF200 send frame - * request header. This allows FreeRTOS+TCP network buffers to be sent - * directly to the WF200 driver without allocating a new buffer and copying - * the frame from the FreeRTOS+TCP network buffer into it. - * - * The + 2 is so that the 14 byte Ethernet frame starts 2 bytes after a 32-bit - * boundary so that the IP header can begin on one. */ -#define ipconfigPACKET_FILLER_SIZE ( sizeof(sl_wfx_send_frame_req_t) + 2 ) -#endif - -/* Define the size of the pool of TCP window descriptors. On the average, each -TCP socket will use up to 2 x 6 descriptors, meaning that it can have 2 x 6 -outstanding packets (for Rx and Tx). When using up to 10 TP sockets -simultaneously, one could define TCP_WIN_SEG_COUNT as 120. */ -#define ipconfigTCP_WIN_SEG_COUNT 20 - -/* Each TCP socket has a circular buffers for Rx and Tx, which have a fixed -maximum size. Define the size of Rx buffer for TCP sockets. */ -#define ipconfigTCP_RX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) - -/* Define the size of Tx buffer for TCP sockets. */ -#define ipconfigTCP_TX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) - -/* Limit the amount of TCP segments sent out at a time per socket. -The default of 8 makes it very difficult for more than one output -stream to operate at a time. Setting it to 1 allows them to better -share time. */ -#define SEND_REPEATED_COUNT ( 8 ) - -/* When using call-back handlers, the driver may check if the handler points to -real program memory (RAM or flash) or just has a random non-zero value. */ -#define ipconfigIS_VALID_PROG_ADDRESS(x) ( (x) != NULL ) - -/* Include support for TCP hang protection. All sockets in a connecting or -disconnecting stage will timeout after a period of non-activity. */ -#define ipconfigTCP_HANG_PROTECTION ( 1 ) -#define ipconfigTCP_HANG_PROTECTION_TIME ( 30 ) - -/* Include support for TCP keep-alive messages. */ -#define ipconfigTCP_KEEP_ALIVE ( 1 ) -#define ipconfigTCP_KEEP_ALIVE_INTERVAL ( 20 ) /* in seconds */ - -#define portINLINE __inline - -#endif /* FREERTOS_IP_CONFIG_H */ +// Copyright 2019-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. +/* + * FreeRTOS Kernel V10.2.1 + * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * http://www.FreeRTOS.org + * http://aws.amazon.com/freertos + * + * 1 tab == 4 spaces! + */ + + +/***************************************************************************** + * + * See the following URL for configuration information. + * http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Configuration.html + * + *****************************************************************************/ + +#ifndef FREERTOS_IP_CONFIG_H +#define FREERTOS_IP_CONFIG_H + +#define ipconfigUSE_WIFI 1 + +#if ipconfigUSE_WIFI +#include "sl_wfx_iot_wifi.h" +#include "sl_wfx_cmd_api.h" +#endif + +/* User defined network parameters */ +#define IPconfig_IP_ADDR_OCTET_0 10 +#define IPconfig_IP_ADDR_OCTET_1 0 +#define IPconfig_IP_ADDR_OCTET_2 0 +#define IPconfig_IP_ADDR_OCTET_3 1 + +#define IPconfig_NET_MASK_OCTET_0 255 +#define IPconfig_NET_MASK_OCTET_1 0 +#define IPconfig_NET_MASK_OCTET_2 0 +#define IPconfig_NET_MASK_OCTET_3 0 + +#define IPconfig_GATEWAY_OCTET_0 10 +#define IPconfig_GATEWAY_OCTET_1 0 +#define IPconfig_GATEWAY_OCTET_2 0 +#define IPconfig_GATEWAY_OCTET_3 1 + +#define IPconfig_DNS_SERVER_OCTET_0 8 +#define IPconfig_DNS_SERVER_OCTET_1 8 +#define IPconfig_DNS_SERVER_OCTET_2 8 +#define IPconfig_DNS_SERVER_OCTET_3 8 + +#define IPconfig_MAC_ADDR_OCTET_0 0x00 +#define IPconfig_MAC_ADDR_OCTET_1 0x00 +#define IPconfig_MAC_ADDR_OCTET_2 0x00 +#define IPconfig_MAC_ADDR_OCTET_3 0x00 +#define IPconfig_MAC_ADDR_OCTET_4 0x00 +#define IPconfig_MAC_ADDR_OCTET_5 0x00 + + +/* Prototype for the function used to print out. In this case it prints to the +console before the network is connected then a UDP port after the network has +connected. */ +extern void vLoggingPrintf( const char *pcFormatString, ... ); + +#define vLoggingPrintf(...) debug_printf(__VA_ARGS__) + +/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to +1 then FreeRTOS_debug_printf should be defined to the function used to print +out the debugging messages. */ +#define ipconfigHAS_DEBUG_PRINTF 0 +#if( ipconfigHAS_DEBUG_PRINTF == 1 ) + #define FreeRTOS_debug_printf(X) vLoggingPrintf X +#endif + +/* Set to 1 to print out non debugging messages, for example the output of the +FreeRTOS_netstat() command, and ping replies. If ipconfigHAS_PRINTF is set to 1 +then FreeRTOS_printf should be set to the function used to print out the +messages. */ +#define ipconfigHAS_PRINTF 0 +#if( ipconfigHAS_PRINTF == 1 ) + #define FreeRTOS_printf(X) vLoggingPrintf X +#endif + +/* Define the byte order of the target MCU (the MCU FreeRTOS+TCP is executing +on). Valid options are pdFREERTOS_BIG_ENDIAN and pdFREERTOS_LITTLE_ENDIAN. */ +#define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN + +/* If the network card/driver includes checksum offloading (IP/TCP/UDP checksums) +then set ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM to 1 to prevent the software +stack repeating the checksum calculations. */ +#define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 + +#define ipconfigZERO_COPY_RX_DRIVER 0 +#define ipconfigZERO_COPY_TX_DRIVER 0 + +#define ipconfigSUPPORT_SIGNALS 1 +//#define ipconfigSOCKET_HAS_USER_SEMAPHORE 1 +//#define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK 1 +//#define ipconfigUSE_CALLBACKS 1 + +/* Several API's will block until the result is known, or the action has been +performed, for example FreeRTOS_send() and FreeRTOS_recv(). The timeouts can be +set per socket, using setsockopt(). If not set, the times below will be +used as defaults. */ +#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME ( portMAX_DELAY ) +#define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME ( portMAX_DELAY ) + +/* Include support for LLMNR: Link-local Multicast Name Resolution +(non-Microsoft) */ +#define ipconfigUSE_LLMNR ( 0 ) // TODO + +/* Include support for NBNS: NetBIOS Name Service (Microsoft) */ +#define ipconfigUSE_NBNS ( 0 ) // TODO + +/* Include support for DNS caching. For TCP, having a small DNS cache is very +useful. When a cache is present, ipconfigDNS_REQUEST_ATTEMPTS can be kept low +and also DNS may use small timeouts. If a DNS reply comes in after the DNS +socket has been destroyed, the result will be stored into the cache. The next +call to FreeRTOS_gethostbyname() will return immediately, without even creating +a socket. */ +#define ipconfigUSE_DNS_CACHE ( 1 ) +#define ipconfigDNS_CACHE_NAME_LENGTH ( 254 ) +#define ipconfigDNS_CACHE_ENTRIES ( 6 ) +#define ipconfigDNS_REQUEST_ATTEMPTS ( 2 ) + +/* The IP stack executes it its own task (although any application task can make +use of its services through the published sockets API). ipconfigIP_TASK_PRIORITY +sets the priority of the task that executes the IP stack. The priority is a +standard FreeRTOS task priority so can take any value from 0 (the lowest +priority) to (configMAX_PRIORITIES - 1) (the highest priority). +configMAX_PRIORITIES is a standard FreeRTOS configuration parameter defined in +FreeRTOSConfig.h, not FreeRTOSIPConfig.h. Consideration needs to be given as to +the priority assigned to the task executing the IP stack relative to the +priority assigned to tasks that use the IP stack. */ +#define ipconfigIP_TASK_PRIORITY ( configMAX_PRIORITIES - 2 ) + +/* The size, in words (not bytes), of the stack allocated to the FreeRTOS+TCP +task. This setting is less important when the FreeRTOS Win32 simulator is used +as the Win32 simulator only stores a fixed amount of information on the task +stack. FreeRTOS includes optional stack overflow detection, see: +http://www.freertos.org/Stacks-and-stack-overflow-checking.html */ +#define ipconfigIP_TASK_STACK_SIZE_WORDS portTASK_STACK_DEPTH( prvIPTask ) + +/* ipconfigRAND32() is called by the IP stack to generate random numbers for +things such as a DHCP transaction number or initial sequence number. Random +number generation is performed via this macro to allow applications to use their +own random number generation method. For example, it might be possible to +generate a random number by sampling noise on an analogue input. */ +extern UBaseType_t uxRand(); +#define ipconfigRAND32() uxRand() + +/* If ipconfigUSE_NETWORK_EVENT_HOOK is set to 1 then FreeRTOS+TCP will call the +network event hook at the appropriate times. If ipconfigUSE_NETWORK_EVENT_HOOK +is not set to 1 then the network event hook will never be called. See +http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_UDP/API/vApplicationIPNetworkEventHook.shtml +*/ +#define ipconfigUSE_NETWORK_EVENT_HOOK 1 + +/* Sockets have a send block time attribute. If FreeRTOS_sendto() is called but +a network buffer cannot be obtained then the calling task is held in the Blocked +state (so other tasks can continue to executed) until either a network buffer +becomes available or the send block time expires. If the send block time expires +then the send operation is aborted. The maximum allowable send block time is +capped to the value set by ipconfigMAX_SEND_BLOCK_TIME_TICKS. Capping the +maximum allowable send block time prevents prevents a deadlock occurring when +all the network buffers are in use and the tasks that process (and subsequently +free) the network buffers are themselves blocked waiting for a network buffer. +ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in +milliseconds can be converted to a time in ticks by dividing the time in +milliseconds by portTICK_PERIOD_MS. */ +#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000 / portTICK_PERIOD_MS ) + +/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP +address, netmask, DNS server address and gateway address from a DHCP server. If +ipconfigUSE_DHCP is 0 then FreeRTOS+TCP will use a static IP address. The +stack will revert to using the static IP address even when ipconfigUSE_DHCP is +set to 1 if a valid configuration cannot be obtained from a DHCP server for any +reason. The static configuration used is that passed into the stack by the +FreeRTOS_IPInit() function call. */ +#define ipconfigUSE_DHCP 1 +#define ipconfigUSE_DHCP_HOOK 1 + +/* When ipconfigUSE_DHCP is set to 1, DHCP requests will be sent out at +increasing time intervals until either a reply is received from a DHCP server +and accepted, or the interval between transmissions reaches +ipconfigMAXIMUM_DISCOVER_TX_PERIOD. The IP stack will revert to using the +static IP address passed as a parameter to FreeRTOS_IPInit() if the +re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without +a DHCP reply being received. */ +#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 120000 / portTICK_PERIOD_MS ) + +/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP +stack can only send a UDP message to a remove IP address if it knowns the MAC +address associated with the IP address, or the MAC address of the router used to +contact the remote IP address. When a UDP message is received from a remote IP +address the MAC address and IP address are added to the ARP cache. When a UDP +message is sent to a remote IP address that does not already appear in the ARP +cache then the UDP message is replaced by a ARP message that solicits the +required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum +number of entries that can exist in the ARP table at any one time. */ +#define ipconfigARP_CACHE_ENTRIES 6 + +/* ARP requests that do not result in an ARP response will be re-transmitted a +maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is +aborted. */ +#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 ) + +/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP +table being created or refreshed and the entry being removed because it is stale. +New ARP requests are sent for ARP cache entries that are nearing their maximum +age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is +equal to 1500 seconds (or 25 minutes). */ +#define ipconfigMAX_ARP_AGE 150 + +/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling +routines, which are relatively large. To save code space the full +FreeRTOS_inet_addr() implementation is made optional, and a smaller and faster +alternative called FreeRTOS_inet_addr_quick() is provided. FreeRTOS_inet_addr() +takes an IP in decimal dot format (for example, "192.168.0.1") as its parameter. +FreeRTOS_inet_addr_quick() takes an IP address as four separate numerical octets +(for example, 192, 168, 0, 1) as its parameters. If +ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and +FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is +not set to 1 then only FreeRTOS_indet_addr_quick() is available. */ +#define ipconfigINCLUDE_FULL_INET_ADDR 1 + +/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that +are available to the IP stack. The total number of network buffers is limited +to ensure the total amount of RAM that can be consumed by the IP stack is capped +to a pre-determinable value. */ +#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 8*2 + +/* A FreeRTOS queue is used to send events from application tasks to the IP +stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can +be queued for processing at any one time. The event queue must be a minimum of +5 greater than the total number of network buffers. */ +#define ipconfigEVENT_QUEUE_LENGTH ( ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5 ) + +/* The address of a socket is the combination of its IP address and its port +number. FreeRTOS_bind() is used to manually allocate a port number to a socket +(to 'bind' the socket to a port), but manual binding is not normally necessary +for client sockets (those sockets that initiate outgoing connections rather than +wait for incoming connections on a known port number). If +ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 1 then calling +FreeRTOS_sendto() on a socket that has not yet been bound will result in the IP +stack automatically binding the socket to a port number from the range +socketAUTO_PORT_ALLOCATION_START_NUMBER to 0xffff. If +ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND is set to 0 then calling FreeRTOS_sendto() +on a socket that has not yet been bound will result in the send operation being +aborted. */ +#define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1 + +/* Defines the Time To Live (TTL) values used in outgoing UDP packets. */ +#define ipconfigUDP_TIME_TO_LIVE 128 +#define ipconfigTCP_TIME_TO_LIVE 128 /* also defined in FreeRTOSIPConfigDefaults.h */ + +/* USE_TCP: Use TCP and all its features */ +#define ipconfigUSE_TCP ( 1 ) + +/* USE_WIN: Let TCP use windowing mechanism. */ +#define ipconfigUSE_TCP_WIN ( 1 ) + +/* Use the RTO calculation required by RFC 6298 */ +#define ipconfigUSE_RFC_RTO ( 1 ) + +/* Use congestion control as specified by RFC 5681 */ +#define ipconfigUSE_CONGESTION_CONTROL ( 1 ) + +/* The MTU is the maximum number of bytes the payload of a network frame can +contain. For normal Ethernet V2 frames the maximum MTU is 1500. Setting a +lower value can save RAM, depending on the buffer management scheme used. If +ipconfigCAN_FRAGMENT_OUTGOING_PACKETS is 1 then (ipconfigNETWORK_MTU - 28) must +be divisible by 8. */ +#define ipconfigNETWORK_MTU 1500 + +/* Set ipconfigUSE_DNS to 1 to include a basic DNS client/resolver. DNS is used +through the FreeRTOS_gethostbyname() API function. */ +#define ipconfigUSE_DNS 1 + +/* If ipconfigREPLY_TO_INCOMING_PINGS is set to 1 then the IP stack will +generate replies to incoming ICMP echo (ping) requests. */ +#define ipconfigREPLY_TO_INCOMING_PINGS 1 + +/* If ipconfigSUPPORT_OUTGOING_PINGS is set to 1 then the +FreeRTOS_SendPingRequest() API function is available. */ +#define ipconfigSUPPORT_OUTGOING_PINGS 1 + +/* If ipconfigSUPPORT_SELECT_FUNCTION is set to 1 then the FreeRTOS_select() +(and associated) API function is available. */ +#define ipconfigSUPPORT_SELECT_FUNCTION 1 + +/* If ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES is set to 1 then Ethernet frames +that are not in Ethernet II format will be dropped. This option is included for +potential future IP stack developments. */ +#define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1 + +/* If ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES is set to 1 then it is the +responsibility of the Ethernet interface to filter out packets that are of no +interest. If the Ethernet interface does not implement this functionality, then +set ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES to 0 to have the IP stack +perform the filtering instead (it is much less efficient for the stack to do it +because the packet will already have been passed into the stack). If the +Ethernet driver does all the necessary filtering in hardware then software +filtering can be removed by using a value other than 1 or 0. */ +#define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1 + +/* The windows simulator cannot really simulate MAC interrupts, and needs to +block occasionally to allow other tasks to run. */ +#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS ) + + +#ifndef SL_WFX_USE_SECURE_LINK +/* Allocate space before Ethernet frames to hold the WF200 send frame + * request header. This allows FreeRTOS+TCP network buffers to be sent + * directly to the WF200 driver without allocating a new buffer and copying + * the frame from the FreeRTOS+TCP network buffer into it. + * + * The + 2 is so that the 14 byte Ethernet frame starts 2 bytes after a 32-bit + * boundary so that the IP header can begin on one. */ +#define ipconfigPACKET_FILLER_SIZE ( sizeof(sl_wfx_send_frame_req_t) + 2 ) +#endif + +/* Define the size of the pool of TCP window descriptors. On the average, each +TCP socket will use up to 2 x 6 descriptors, meaning that it can have 2 x 6 +outstanding packets (for Rx and Tx). When using up to 10 TP sockets +simultaneously, one could define TCP_WIN_SEG_COUNT as 120. */ +#define ipconfigTCP_WIN_SEG_COUNT 20 + +/* Each TCP socket has a circular buffers for Rx and Tx, which have a fixed +maximum size. Define the size of Rx buffer for TCP sockets. */ +#define ipconfigTCP_RX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) + +/* Define the size of Tx buffer for TCP sockets. */ +#define ipconfigTCP_TX_BUFFER_LENGTH ( 4 * ipconfigTCP_MSS ) + +/* Limit the amount of TCP segments sent out at a time per socket. +The default of 8 makes it very difficult for more than one output +stream to operate at a time. Setting it to 1 allows them to better +share time. */ +#define SEND_REPEATED_COUNT ( 8 ) + +/* When using call-back handlers, the driver may check if the handler points to +real program memory (RAM or flash) or just has a random non-zero value. */ +#define ipconfigIS_VALID_PROG_ADDRESS(x) ( (x) != NULL ) + +/* Include support for TCP hang protection. All sockets in a connecting or +disconnecting stage will timeout after a period of non-activity. */ +#define ipconfigTCP_HANG_PROTECTION ( 1 ) +#define ipconfigTCP_HANG_PROTECTION_TIME ( 30 ) + +/* Include support for TCP keep-alive messages. */ +#define ipconfigTCP_KEEP_ALIVE ( 1 ) +#define ipconfigTCP_KEEP_ALIVE_INTERVAL ( 20 ) /* in seconds */ + +#define portINLINE __inline + +#endif /* FREERTOS_IP_CONFIG_H */ diff --git a/test/rtos_drivers/wifi/src/app_conf.h b/test/rtos_drivers/wifi/src/app_conf.h index 5deb48465..1be7c7037 100644 --- a/test/rtos_drivers/wifi/src/app_conf.h +++ b/test/rtos_drivers/wifi/src/app_conf.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef APP_CONF_H_ diff --git a/test/rtos_drivers/wifi/src/board_init.c b/test/rtos_drivers/wifi/src/board_init.c index b6afbd7fb..77dd9abbe 100644 --- a/test/rtos_drivers/wifi/src/board_init.c +++ b/test/rtos_drivers/wifi/src/board_init.c @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/test/rtos_drivers/wifi/src/board_init.h b/test/rtos_drivers/wifi/src/board_init.h index 1e27c48ee..512799ae7 100644 --- a/test/rtos_drivers/wifi/src/board_init.h +++ b/test/rtos_drivers/wifi/src/board_init.h @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef BOARD_INIT_H_ diff --git a/test/rtos_drivers/wifi/src/ff_appconf.h b/test/rtos_drivers/wifi/src/ff_appconf.h index f4ffab8e0..d692d1bbe 100644 --- a/test/rtos_drivers/wifi/src/ff_appconf.h +++ b/test/rtos_drivers/wifi/src/ff_appconf.h @@ -1,29 +1,29 @@ -// Copyright 2021 XMOS LIMITED. -// This Software is subject to the terms of the XMOS Public Licence: Version 1. - -/* Function Configurations -/---------------------------------------------------------------------------*/ - -#define FF_FS_MINIMIZE 0 -/* This option defines minimization level to remove some basic API functions. -/ -/ 0: Basic functions are fully enabled. -/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename() -/ are removed. -/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1. -/ 3: f_lseek() function is removed in addition to 2. */ - - - -/*---------------------------------------------------------------------------/ -/ System Configurations -/---------------------------------------------------------------------------*/ - -#define FF_FS_TINY 1 -/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny) -/ At the tiny configuration, size of file object (FIL) is shrinked FF_MAX_SS bytes. -/ Instead of private sector buffer eliminated from the file object, common sector -/ buffer in the filesystem object (FATFS) is used for the file data transfer. */ - - -/*--- End of configuration options ---*/ +// Copyright 2020-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. + +/* Function Configurations +/---------------------------------------------------------------------------*/ + +#define FF_FS_MINIMIZE 0 +/* This option defines minimization level to remove some basic API functions. +/ +/ 0: Basic functions are fully enabled. +/ 1: f_stat(), f_getfree(), f_unlink(), f_mkdir(), f_truncate() and f_rename() +/ are removed. +/ 2: f_opendir(), f_readdir() and f_closedir() are removed in addition to 1. +/ 3: f_lseek() function is removed in addition to 2. */ + + + +/*---------------------------------------------------------------------------/ +/ System Configurations +/---------------------------------------------------------------------------*/ + +#define FF_FS_TINY 1 +/* This option switches tiny buffer configuration. (0:Normal or 1:Tiny) +/ At the tiny configuration, size of file object (FIL) is shrinked FF_MAX_SS bytes. +/ Instead of private sector buffer eliminated from the file object, common sector +/ buffer in the filesystem object (FATFS) is used for the file data transfer. */ + + +/*--- End of configuration options ---*/ diff --git a/test/rtos_drivers/wifi/src/individual_tests/individual_tests.h b/test/rtos_drivers/wifi/src/individual_tests/individual_tests.h index 9f70b80e9..025db489a 100644 --- a/test/rtos_drivers/wifi/src/individual_tests/individual_tests.h +++ b/test/rtos_drivers/wifi/src/individual_tests/individual_tests.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef INDIVIDUAL_TESTS_H_ diff --git a/test/rtos_drivers/wifi/src/individual_tests/wifi/local/wifi_test.c b/test/rtos_drivers/wifi/src/individual_tests/wifi/local/wifi_test.c index 448bbd41c..0d1e91460 100644 --- a/test/rtos_drivers/wifi/src/individual_tests/wifi/local/wifi_test.c +++ b/test/rtos_drivers/wifi/src/individual_tests/wifi/local/wifi_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.c b/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.c index c41539dd2..bc6c9b8cb 100644 --- a/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.c +++ b/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.h b/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.h index 4d36bb7a3..14c9dcbe9 100644 --- a/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.h +++ b/test/rtos_drivers/wifi/src/individual_tests/wifi/wifi_test.h @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef WIFI_TEST_H_ diff --git a/test/rtos_drivers/wifi/src/main.c b/test/rtos_drivers/wifi/src/main.c index ae6d785d9..da41c1610 100644 --- a/test/rtos_drivers/wifi/src/main.c +++ b/test/rtos_drivers/wifi/src/main.c @@ -1,4 +1,4 @@ -// Copyright 2021-2022 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. /* System headers */ diff --git a/test/rtos_drivers/wifi/src/rtos_test/rtos_test_utils.h b/test/rtos_drivers/wifi/src/rtos_test/rtos_test_utils.h index 3321507f3..278ed176a 100644 --- a/test/rtos_drivers/wifi/src/rtos_test/rtos_test_utils.h +++ b/test/rtos_drivers/wifi/src/rtos_test/rtos_test_utils.h @@ -1,4 +1,4 @@ -// Copyright 2021 XMOS LIMITED. +// Copyright 2021-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RTOS_TEST_UTILS_H_ diff --git a/test/rtos_drivers/wifi/test_verify_wifi_results.py b/test/rtos_drivers/wifi/test_verify_wifi_results.py index dcadc2876..ed1d659d1 100644 --- a/test/rtos_drivers/wifi/test_verify_wifi_results.py +++ b/test/rtos_drivers/wifi/test_verify_wifi_results.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright 2021 XMOS LIMITED. +# Copyright 2021-2023 XMOS LIMITED. # This Software is subject to the terms of the XMOS Public Licence: Version 1. import pytest diff --git a/tools/fatfs_mkimage/argtable/argtable3.c b/tools/fatfs_mkimage/argtable/argtable3.c index af87ac1aa..d42628b26 100644 --- a/tools/fatfs_mkimage/argtable/argtable3.c +++ b/tools/fatfs_mkimage/argtable/argtable3.c @@ -1,3 +1,5 @@ +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. /******************************************************************************* * This file is part of the argtable3 library. * diff --git a/tools/fatfs_mkimage/argtable/argtable3.h b/tools/fatfs_mkimage/argtable/argtable3.h index 487c22d3b..ac0b41ffb 100644 --- a/tools/fatfs_mkimage/argtable/argtable3.h +++ b/tools/fatfs_mkimage/argtable/argtable3.h @@ -1,3 +1,5 @@ +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. /******************************************************************************* * argtable3: Declares the main interfaces of the library * diff --git a/tools/fatfs_mkimage/src/directory_add.c b/tools/fatfs_mkimage/src/directory_add.c index ea9f058d0..51e94dcf5 100644 --- a/tools/fatfs_mkimage/src/directory_add.c +++ b/tools/fatfs_mkimage/src/directory_add.c @@ -1,5 +1,5 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #include diff --git a/tools/fatfs_mkimage/src/directory_add.h b/tools/fatfs_mkimage/src/directory_add.h index afe6f1243..c5aff394a 100644 --- a/tools/fatfs_mkimage/src/directory_add.h +++ b/tools/fatfs_mkimage/src/directory_add.h @@ -1,5 +1,5 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef DIRECTORY_ADD_H_ #define DIRECTORY_ADD_H_ diff --git a/tools/fatfs_mkimage/src/fatfs_mkimage.c b/tools/fatfs_mkimage/src/fatfs_mkimage.c index d280805d5..1fa08600f 100644 --- a/tools/fatfs_mkimage/src/fatfs_mkimage.c +++ b/tools/fatfs_mkimage/src/fatfs_mkimage.c @@ -1,5 +1,5 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #include diff --git a/tools/fatfs_mkimage/src/fatfs_ops.c b/tools/fatfs_mkimage/src/fatfs_ops.c index 4fab7c024..b701de2be 100644 --- a/tools/fatfs_mkimage/src/fatfs_ops.c +++ b/tools/fatfs_mkimage/src/fatfs_ops.c @@ -1,5 +1,5 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #include "fatfs_ops.h" diff --git a/tools/fatfs_mkimage/src/fatfs_ops.h b/tools/fatfs_mkimage/src/fatfs_ops.h index a063a43f5..b4c9cb3be 100644 --- a/tools/fatfs_mkimage/src/fatfs_ops.h +++ b/tools/fatfs_mkimage/src/fatfs_ops.h @@ -1,5 +1,5 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef FATFS_OPS_H_ #define FATFS_OPS_H_ diff --git a/tools/fatfs_mkimage/src/ffconf.h b/tools/fatfs_mkimage/src/ffconf.h index e3b0deade..da422fada 100644 --- a/tools/fatfs_mkimage/src/ffconf.h +++ b/tools/fatfs_mkimage/src/ffconf.h @@ -1,3 +1,5 @@ +// Copyright 2020-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. /*---------------------------------------------------------------------------/ / FatFs Functional Configurations /---------------------------------------------------------------------------*/ diff --git a/tools/fatfs_mkimage/src/ramdisk.c b/tools/fatfs_mkimage/src/ramdisk.c index 51370f213..b2fd88449 100644 --- a/tools/fatfs_mkimage/src/ramdisk.c +++ b/tools/fatfs_mkimage/src/ramdisk.c @@ -1,5 +1,5 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #include #include diff --git a/tools/fatfs_mkimage/src/ramdisk.h b/tools/fatfs_mkimage/src/ramdisk.h index 3d5e8dfa9..7d646baa2 100644 --- a/tools/fatfs_mkimage/src/ramdisk.h +++ b/tools/fatfs_mkimage/src/ramdisk.h @@ -1,5 +1,5 @@ -// Copyright 2021 XMOS LIMITED. This Software is subject to the terms of the -// XMOS Public License: Version 1 +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. #ifndef RAMDISK_H_ #define RAMDISK_H_ diff --git a/tools/fatfs_mkimage/src/tinydir.h b/tools/fatfs_mkimage/src/tinydir.h index e08eb84ec..7d86984b6 100644 --- a/tools/fatfs_mkimage/src/tinydir.h +++ b/tools/fatfs_mkimage/src/tinydir.h @@ -1,3 +1,5 @@ +// Copyright 2021-2023 XMOS LIMITED. +// This Software is subject to the terms of the XMOS Public Licence: Version 1. /* Copyright (c) 2013-2019, tinydir authors: - Cong Xu From 9a1d84aeefc3615598f0bed79cc3b0bdbad11922 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 09:19:16 +0000 Subject: [PATCH 07/13] Manual updates --- .xmos_ignore_source_check | 2 ++ tools/fatfs_mkimage/argtable/argtable3.c | 4 +--- tools/fatfs_mkimage/argtable/argtable3.h | 2 -- tools/fatfs_mkimage/src/ffconf.h | 1 + tools/fatfs_mkimage/src/tinydir.h | 2 -- 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.xmos_ignore_source_check b/.xmos_ignore_source_check index a403df5ce..8ad078c72 100644 --- a/.xmos_ignore_source_check +++ b/.xmos_ignore_source_check @@ -1,3 +1,5 @@ modules/FreeRTOS modules/drivers/wifi +fatfs_mkimage/argtable/ +fatfs_mkimage/src/tinydir.h thirdparty diff --git a/tools/fatfs_mkimage/argtable/argtable3.c b/tools/fatfs_mkimage/argtable/argtable3.c index d42628b26..4f4bf8848 100644 --- a/tools/fatfs_mkimage/argtable/argtable3.c +++ b/tools/fatfs_mkimage/argtable/argtable3.c @@ -1,5 +1,3 @@ -// Copyright 2021-2023 XMOS LIMITED. -// This Software is subject to the terms of the XMOS Public Licence: Version 1. /******************************************************************************* * This file is part of the argtable3 library. * @@ -1298,7 +1296,7 @@ extern int optreset; /* getopt(3) external variable */ #ifdef __cplusplus } #endif - + #endif /* !_GETOPT_H_ */ #endif /* ARG_REPLACE_GETOPT == 1 */ diff --git a/tools/fatfs_mkimage/argtable/argtable3.h b/tools/fatfs_mkimage/argtable/argtable3.h index ac0b41ffb..487c22d3b 100644 --- a/tools/fatfs_mkimage/argtable/argtable3.h +++ b/tools/fatfs_mkimage/argtable/argtable3.h @@ -1,5 +1,3 @@ -// Copyright 2021-2023 XMOS LIMITED. -// This Software is subject to the terms of the XMOS Public Licence: Version 1. /******************************************************************************* * argtable3: Declares the main interfaces of the library * diff --git a/tools/fatfs_mkimage/src/ffconf.h b/tools/fatfs_mkimage/src/ffconf.h index da422fada..20142e91f 100644 --- a/tools/fatfs_mkimage/src/ffconf.h +++ b/tools/fatfs_mkimage/src/ffconf.h @@ -1,5 +1,6 @@ // Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. + /*---------------------------------------------------------------------------/ / FatFs Functional Configurations /---------------------------------------------------------------------------*/ diff --git a/tools/fatfs_mkimage/src/tinydir.h b/tools/fatfs_mkimage/src/tinydir.h index 7d86984b6..e08eb84ec 100644 --- a/tools/fatfs_mkimage/src/tinydir.h +++ b/tools/fatfs_mkimage/src/tinydir.h @@ -1,5 +1,3 @@ -// Copyright 2021-2023 XMOS LIMITED. -// This Software is subject to the terms of the XMOS Public Licence: Version 1. /* Copyright (c) 2013-2019, tinydir authors: - Cong Xu From bc1f3500def4ea989062ff80a6b169623e20d89e Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 10:33:43 +0000 Subject: [PATCH 08/13] Re-instate double underscore --- doc/shared/legal.rst | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/doc/shared/legal.rst b/doc/shared/legal.rst index bde0605ea..c3a768d85 100644 --- a/doc/shared/legal.rst +++ b/doc/shared/legal.rst @@ -18,7 +18,7 @@ Licenses XMOS ^^^^ -All original source code is licensed under the `XMOS License `_. +All original source code is licensed under the `XMOS License `__. Third-Party ^^^^^^^^^^^ @@ -32,18 +32,18 @@ Additional third party code is included under the following copyrights and licen * - Module - Copyright & License - * - `Argtable3 `_ - - Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann, licensed under `LICENSE `_ - - Copyright (C) 2017 ChaN, licensed under a `BSD-style license `_ - * - `FreeRTOS `_ - - Copyright (c) 2017 Amazon.com, Inc., licensed under the `MIT License `_ + * - `Argtable3 `__ + - Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann, licensed under `LICENSE `__ + - Copyright (C) 2017 ChaN, licensed under a `BSD-style license `__ + * - `FreeRTOS `__ + - Copyright (c) 2017 Amazon.com, Inc., licensed under the `MIT License `__ * - HTTP Parser - - Copyright (c) Joyent, Inc. and other Node contributors, licensed under the `MIT license `_ - * - `JSMN JSON Parser `_ - - Copyright (c) 2010 Serge A. Zaitsev, licensed under the `MIT license `_ - * - `Mbed TLS library `_ - - Copyright (c) 2006-2018 ARM Limited, licensed under the `Apache License 2.0 `_ - * - `Paho MQTT C/C++ client for Embedded platforms `_ - - Copyright (c) 2020 The TensorFlow Authors, licensed under the `Apache License `_ - * - `TinyUSB `_ - - Copyright (c) 2018 hathach (tinyusb.org), licensed under the `MIT license `_ + - Copyright (c) Joyent, Inc. and other Node contributors, licensed under the `MIT license `__ + * - `JSMN JSON Parser `__ + - Copyright (c) 2010 Serge A. Zaitsev, licensed under the `MIT license `__ + * - `Mbed TLS library `__ + - Copyright (c) 2006-2018 ARM Limited, licensed under the `Apache License 2.0 `__ + * - `Paho MQTT C/C++ client for Embedded platforms `__ + - Copyright (c) 2020 The TensorFlow Authors, licensed under the `Apache License `__ + * - `TinyUSB `__ + - Copyright (c) 2018 hathach (tinyusb.org), licensed under the `MIT license `__ From 96f1f6ec486ef922b1c0cf00e4703cba0ab46d37 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 10:36:16 +0000 Subject: [PATCH 09/13] Last changes --- modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c | 2 +- test/README.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c index b477dd5af..6f4449cff 100644 --- a/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c +++ b/modules/drivers/wifi/sl_wf200/FreeRTOS/sl_wfx_host.c @@ -1,4 +1,4 @@ -// Copyright 2020 XMOS LIMITED. This Software is subject to the terms of the +// Copyright 2020-2023 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include diff --git a/test/README.rst b/test/README.rst index 800c67096..c9c35898d 100644 --- a/test/README.rst +++ b/test/README.rst @@ -9,7 +9,7 @@ Requirements The following software is required for running tests. * Linux, MacOS, or Windows Subsystem for Linux -* `Python 3.8 `_ +* `Python 3.8 `__ Python Virtual Environment ========================== From 0373456985c150ad62e67fbb9b4114a549f8ac5a Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 11:12:40 +0000 Subject: [PATCH 10/13] Undo change --- doc/shared/legal.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/shared/legal.rst b/doc/shared/legal.rst index c3a768d85..0fc47688a 100644 --- a/doc/shared/legal.rst +++ b/doc/shared/legal.rst @@ -34,6 +34,7 @@ Additional third party code is included under the following copyrights and licen - Copyright & License * - `Argtable3 `__ - Copyright (C) 1998-2001,2003-2011,2013 Stewart Heitmann, licensed under `LICENSE `__ + * - `FatFS `__ - Copyright (C) 2017 ChaN, licensed under a `BSD-style license `__ * - `FreeRTOS `__ - Copyright (c) 2017 Amazon.com, Inc., licensed under the `MIT License `__ From 25c1ad2331cb92c81c62bd3b394d73d7d3b6f142 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 11:26:38 +0000 Subject: [PATCH 11/13] Undo change --- doc/programming_guide/platform.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/programming_guide/platform.rst b/doc/programming_guide/platform.rst index a28ba5bba..9a42d8128 100644 --- a/doc/programming_guide/platform.rst +++ b/doc/programming_guide/platform.rst @@ -27,4 +27,4 @@ The `Programming Guide `_. As well as providing a powerful toolchain for application development, the toolkit assists with application deployment and upgrade. +The xcore processors are accompanied by the `XTC Tools `__. As well as providing a powerful toolchain for application development, the toolkit assists with application deployment and upgrade. From edf1c89f60511fafe699056cf12bd213cba4cfbb Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 14:40:38 +0000 Subject: [PATCH 12/13] Use tag v1.0.0 for xmos_cmake_toolchain --- xmos_cmake_toolchain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmos_cmake_toolchain b/xmos_cmake_toolchain index e577fbcf1..ea6b9c4b7 160000 --- a/xmos_cmake_toolchain +++ b/xmos_cmake_toolchain @@ -1 +1 @@ -Subproject commit e577fbcf147346264dbe25f82c5cc0e46e648cd6 +Subproject commit ea6b9c4b7bd99044953b7dcdecc9768e737a5635 From 3eb1decca896ac87659c35d55f2432ee692674d8 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Fri, 3 Nov 2023 15:23:29 +0000 Subject: [PATCH 13/13] Update changelog --- CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 443b075e0..a58be9640 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,7 @@ RTOS Framework change log * FIXED: Added dummy definitions of vTaskCoreAffinitySet() and vTaskCoreAffinitySet() functions to avoid warnings when configNUM_CORES is set to 1. + * UPDATED: Updated xmos_cmake_toolchain to v1.0.0 from untagged commit e577fbc * UPDATED: Tested against fwk_io v3.3.0 updated from v3.0.1 * UPDATED: Tested against fwk_core v1.0.2 updated from v1.0.0 * ADDED: Runtime check for I2S RPC functions called for I2S Slave