Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix initial push #7

Merged
merged 2 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Available options
* POOL_BLOCK_SIZE, POOL_BLOCK_NUM
* INTERRUPT_QUEUE_SIZE

# Building the tests
# Building the tests

To build and flash the firmware, see [the build tutorial](BUILD.md).

Expand Down
10 changes: 5 additions & 5 deletions src/wch-ch56x-lib/HSPIDevice/hspi.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,7 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*******************************************************************************/
********************************************************************************/

#include "wch-ch56x-lib/HSPIDevice/hspi.h"
#include "wch-ch56x-lib/logging/logging.h"
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/HSPIDevice/hspi.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/HSPIDeviceScheduled/hspi_scheduled.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/HSPIDeviceScheduled/hspi_scheduled.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/SerDesDevice/serdes.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/SerDesDevice/serdes.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/USBDevice/usb20.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/USBDevice/usb20.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/USBDevice/usb2_utils.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/USBDevice/usb30.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/USBDevice/usb30.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/USBDevice/usb30_utils.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/USBDevice/usb_descriptors.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/USBDevice/usb_device.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/USBDevice/usb_device.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/USBDevice/usb_endpoints.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
5 changes: 2 additions & 3 deletions src/wch-ch56x-lib/USBDevice/usb_endpoints.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions src/wch-ch56x-lib/USBDevice/usb_types.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2021 Nanjing Qinheng
Microelectronics Co., Ltd. Copyright (c) 2022 Benjamin VERNOUX Copyright (c)
2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/interrupt_queue/interrupt_queue.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/interrupt_queue/interrupt_queue.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/log_printf.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/log_printf.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/log_serdes.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/log_serdes.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/log_to_buffer.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/log_to_buffer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/logging.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/logging/logging.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2022 Benjamin VERNOUX Copyright
(c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2022 Benjamin VERNOUX
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/wch-ch56x-lib/logging/logging_definitions.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/memory/alloc.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2020 Nicolas OBERLI
(HydraBus/HydraNFC) Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2020 Nicolas OBERLI (HydraBus/HydraNFC)
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
5 changes: 3 additions & 2 deletions src/wch-ch56x-lib/memory/fifo.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
5 changes: 3 additions & 2 deletions src/wch-ch56x-lib/memory/fifo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/memory/ramx_alloc.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2020 Nicolas OBERLI
(HydraBus/HydraNFC) Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2020 Nicolas OBERLI (HydraBus/HydraNFC)
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/wch-ch56x-lib/memory/ramx_alloc.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2020 Nicolas OBERLI
(HydraBus/HydraNFC) Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2020 Nicolas OBERLI (HydraBus/HydraNFC)
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions tools/firmware_debug_board/User/main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions tools/firmware_debug_board/User/usb2_device_descriptors.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions tools/firmware_debug_board/User/usb_device.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************** (C) COPYRIGHT
******************************* Copyright (c) 2023 Quarkslab
/********************************** (C) COPYRIGHT *******************************
Copyright (c) 2023 Quarkslab

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down