From dfb9dd820892439edb7fe90576875d353f002995 Mon Sep 17 00:00:00 2001 From: Nemanja Stojoski Date: Sat, 28 Oct 2023 10:35:42 +0200 Subject: [PATCH] Update all split licenses --- flight_computer/src/FreeRTOSConfig.h | 33 ++++----------- flight_computer/src/cli/cli.cpp | 25 ++++-------- flight_computer/src/cli/cli.hpp | 25 ++++-------- flight_computer/src/cli/cli_commands.cpp | 25 ++++-------- flight_computer/src/cli/cli_commands.hpp | 25 ++++-------- flight_computer/src/cli/settings.cpp | 25 ++++-------- flight_computer/src/cli/settings.hpp | 25 ++++-------- flight_computer/src/syscalls.c | 28 +++---------- flight_computer/src/sysmem.c | 28 +++---------- .../src/target/VEGA/STM32F411CCUX_FLASH.ld | 39 +++--------------- .../src/target/VEGA/STM32F411CCUX_RAM.ld | 27 ++----------- .../src/target/VEGA/startup_stm32f411ccux.S | 34 ++++------------ .../src/target/VEGA/stm32f4xx_hal_conf.h | 26 +++--------- .../src/target/VEGA/stm32f4xx_hal_msp.cpp | 26 +++--------- .../VEGA/stm32f4xx_hal_timebase_tim.cpp | 25 +++--------- .../src/target/VEGA/stm32f4xx_it.cpp | 25 +++--------- .../src/target/VEGA/stm32f4xx_it.h | 25 +++--------- .../src/target/VEGA/system_stm32f4xx.cpp | 23 ++++------- flight_computer/src/usb/msc/emfat.c | 36 ++++------------- flight_computer/src/usb/msc/emfat.h | 36 ++++------------- flight_computer/src/usb/msc/emfat_file.cpp | 31 ++++---------- flight_computer/src/usb/msc/emfat_file.h | 28 ++++--------- flight_computer/src/usb/msc_disk.c | 31 ++++---------- flight_computer/src/usb/tusb_config.h | 31 ++++---------- flight_computer/src/usb/usb_descriptors.c | 31 ++++---------- ground_station/dfu_reboot.py | 34 ++++------------ ground_station/packet_installer.py | 34 +++------------- ground_station/serial_console.py | 34 ++++------------ ground_station/serial_terminal.py | 34 ++++------------ ground_station/src/USB.cpp | 32 +++++---------- ground_station/src/console.cpp | 40 +++++-------------- ground_station/src/console.hpp | 38 ++++-------------- ground_station/src/utils.cpp | 40 +++++-------------- ground_station/src/utils.hpp | 39 ++++-------------- ground_station/uf2_loader.py | 34 ++++------------ ground_station/upload_script.py | 34 ++++------------ telemetry/src/st/stm32g0xx_hal_conf.h | 25 +++--------- telemetry/src/st/stm32g0xx_hal_msp.c | 25 +++--------- telemetry/src/st/stm32g0xx_it.c | 24 +++-------- telemetry/src/st/stm32g0xx_it.h | 24 +++-------- telemetry/src/st/syscalls.c | 27 +++---------- telemetry/src/st/sysmem.c | 27 +++---------- telemetry/src/st/system_stm32g0xx.c | 18 ++++----- 43 files changed, 296 insertions(+), 980 deletions(-) diff --git a/flight_computer/src/FreeRTOSConfig.h b/flight_computer/src/FreeRTOSConfig.h index 46c2ab68..bbb397e6 100644 --- a/flight_computer/src/FreeRTOSConfig.h +++ b/flight_computer/src/FreeRTOSConfig.h @@ -1,28 +1,10 @@ -/* - * FreeRTOS V202111.00 - * Copyright (C) 2020 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. - * - * https://www.FreeRTOS.org - * https://github.com/FreeRTOS - * - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from FreeRTOS (https://github.com/FreeRTOS), +/// released under MIT License. #ifndef FREERTOS_CONFIG_H #define FREERTOS_CONFIG_H @@ -31,6 +13,7 @@ extern "C" { #endif +/// FreeRTOS V202111.00 /*----------------------------------------------------------- * Application specific definitions. * diff --git a/flight_computer/src/cli/cli.cpp b/flight_computer/src/cli/cli.cpp index 626a0a0a..b45ba354 100644 --- a/flight_computer/src/cli/cli.cpp +++ b/flight_computer/src/cli/cli.cpp @@ -1,21 +1,10 @@ -/* - * This file was part of Cleanflight and Betaflight. - * https://github.com/betaflight/betaflight - * It is modified for the CATS Flight Software. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. #include "cli/cli.hpp" diff --git a/flight_computer/src/cli/cli.hpp b/flight_computer/src/cli/cli.hpp index cc70bcb2..7d4059df 100644 --- a/flight_computer/src/cli/cli.hpp +++ b/flight_computer/src/cli/cli.hpp @@ -1,21 +1,10 @@ -/* - * This file was part of Cleanflight and Betaflight. - * https://github.com/betaflight/betaflight - * It is modified for the CATS Flight Software. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. #pragma once diff --git a/flight_computer/src/cli/cli_commands.cpp b/flight_computer/src/cli/cli_commands.cpp index 7db7c063..73749946 100644 --- a/flight_computer/src/cli/cli_commands.cpp +++ b/flight_computer/src/cli/cli_commands.cpp @@ -1,21 +1,10 @@ -/* - * This file was adapted from Cleanflight and Betaflight. - * https://github.com/betaflight/betaflight - * It is modified for the CATS Flight Software. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. #include "cli/cli_commands.hpp" diff --git a/flight_computer/src/cli/cli_commands.hpp b/flight_computer/src/cli/cli_commands.hpp index e1e98e91..6b82d599 100644 --- a/flight_computer/src/cli/cli_commands.hpp +++ b/flight_computer/src/cli/cli_commands.hpp @@ -1,21 +1,10 @@ -/* - * This file was part of Cleanflight and Betaflight. - * https://github.com/betaflight/betaflight - * It is modified for the CATS Flight Software. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. #pragma once diff --git a/flight_computer/src/cli/settings.cpp b/flight_computer/src/cli/settings.cpp index 2ada48ac..1a5ae3dd 100644 --- a/flight_computer/src/cli/settings.cpp +++ b/flight_computer/src/cli/settings.cpp @@ -1,21 +1,10 @@ -/* - * This file was part of Cleanflight and Betaflight. - * https://github.com/betaflight/betaflight - * It is modified for the CATS Flight Software. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. #include "cli/settings.hpp" #include "cli/cli.hpp" diff --git a/flight_computer/src/cli/settings.hpp b/flight_computer/src/cli/settings.hpp index 0bdd6d52..9392b02b 100644 --- a/flight_computer/src/cli/settings.hpp +++ b/flight_computer/src/cli/settings.hpp @@ -1,21 +1,10 @@ -/* - * This file was part of Cleanflight and Betaflight. - * https://github.com/betaflight/betaflight - * It is modified for the CATS Flight Software. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. #pragma once diff --git a/flight_computer/src/syscalls.c b/flight_computer/src/syscalls.c index b5c000ab..3e24fdf2 100644 --- a/flight_computer/src/syscalls.c +++ b/flight_computer/src/syscalls.c @@ -1,25 +1,9 @@ -/** - ****************************************************************************** - * @file syscalls.c - * @author Auto-generated by STM32CubeIDE - * @brief STM32CubeIDE Minimal System calls file - * - * For more information about which c-functions - * need which of these lowlevel functions - * please consult the Newlib libc-manual - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2020 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes */ #include diff --git a/flight_computer/src/sysmem.c b/flight_computer/src/sysmem.c index a55d91cb..c7a0702c 100644 --- a/flight_computer/src/sysmem.c +++ b/flight_computer/src/sysmem.c @@ -1,25 +1,9 @@ -/** - ****************************************************************************** - * @file sysmem.c - * @author Generated by STM32CubeIDE - * @brief STM32CubeIDE System Memory calls file - * - * For more information about which C functions - * need which of these lowlevel functions - * please consult the newlib libc manual - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2020 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes */ #include diff --git a/flight_computer/src/target/VEGA/STM32F411CCUX_FLASH.ld b/flight_computer/src/target/VEGA/STM32F411CCUX_FLASH.ld index 5af3fcc8..95193d7a 100644 --- a/flight_computer/src/target/VEGA/STM32F411CCUX_FLASH.ld +++ b/flight_computer/src/target/VEGA/STM32F411CCUX_FLASH.ld @@ -1,36 +1,9 @@ -/* -****************************************************************************** -** -** @file : LinkerScript.ld -** -** @author : Auto-generated by STM32CubeIDE -** -** @brief : Linker script for STM32F411CCUx Device from STM32F4 series -** 256Kbytes FLASH -** 128Kbytes RAM -** -** Set heap size, stack size and stack location according -** to application requirements. -** -** Set memory bank area and size if external memory is used -** -** Target : STMicroelectronics STM32 -** -** Distribution: The file is distributed as is, without any warranty -** of any kind. -** -****************************************************************************** -** @attention -** -** Copyright (c) 2022 STMicroelectronics. -** All rights reserved. -** -** This software is licensed under terms that can be found in the LICENSE file -** in the root directory of this software component. -** If no LICENSE file comes with this software, it is provided AS-IS. -** -****************************************************************************** -*/ +/* Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH + * + * SPDX-License-Identifier: GPL-3.0-or-later + * + * Additional notice: + * This file was adapted from STMicroelectronics, released under BSD 3-Clause license. */ /* Entry Point */ ENTRY(Reset_Handler) diff --git a/flight_computer/src/target/VEGA/STM32F411CCUX_RAM.ld b/flight_computer/src/target/VEGA/STM32F411CCUX_RAM.ld index 48920b52..6c4992ca 100644 --- a/flight_computer/src/target/VEGA/STM32F411CCUX_RAM.ld +++ b/flight_computer/src/target/VEGA/STM32F411CCUX_RAM.ld @@ -1,28 +1,9 @@ -/** - ****************************************************************************** - * @file LinkerScript.ld - * @author Auto-generated by STM32CubeIDE - * @brief Linker script for STM32F411CCUx Device from STM32F4 series - * 256Kbytes FLASH - * 128Kbytes RAM +/* Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH * - * Set heap size, stack size and stack location according - * to application requirements. + * SPDX-License-Identifier: GPL-3.0-or-later * - * Set memory bank area and size if external memory is used - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2020 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ + * Additional notice: + * This file was adapted from STMicroelectronics, released under BSD 3-Clause license. */ /* Entry Point */ ENTRY(Reset_Handler) diff --git a/flight_computer/src/target/VEGA/startup_stm32f411ccux.S b/flight_computer/src/target/VEGA/startup_stm32f411ccux.S index e817f33c..d3ce85c9 100644 --- a/flight_computer/src/target/VEGA/startup_stm32f411ccux.S +++ b/flight_computer/src/target/VEGA/startup_stm32f411ccux.S @@ -1,30 +1,10 @@ -/** - ****************************************************************************** - * @file startup_stm32f411xe.s - * @author MCD Application Team - * @brief STM32F411xExx Devices vector table for GCC based toolchains. - * This module performs: - * - Set the initial SP - * - Set the initial PC == Reset_Handler, - * - Set the vector table entries with the exceptions ISR address - * - Branches to main in the C library (which eventually - * calls main()). - * After Reset the Cortex-M4 processor is in Thread mode, - * priority is Privileged, and the Stack is set to Main. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2017 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ - +/* Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH + * + * SPDX-License-Identifier: GPL-3.0-or-later + * + * Additional notice: + * This file was adapted from STMicroelectronics, released under BSD 3-Clause license. */ + .syntax unified .cpu cortex-m4 .fpu softvfp diff --git a/flight_computer/src/target/VEGA/stm32f4xx_hal_conf.h b/flight_computer/src/target/VEGA/stm32f4xx_hal_conf.h index 3ec6f219..8b4b69de 100644 --- a/flight_computer/src/target/VEGA/stm32f4xx_hal_conf.h +++ b/flight_computer/src/target/VEGA/stm32f4xx_hal_conf.h @@ -1,23 +1,9 @@ -/** - ****************************************************************************** - * @file stm32f4xx_hal_conf_template.h - * @author MCD Application Team - * @brief HAL configuration template file. - * This file should be copied to the application folder and renamed - * to stm32f4xx_hal_conf.h. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2017 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_HAL_CONF_H diff --git a/flight_computer/src/target/VEGA/stm32f4xx_hal_msp.cpp b/flight_computer/src/target/VEGA/stm32f4xx_hal_msp.cpp index 3f82a7a7..e1842dfe 100644 --- a/flight_computer/src/target/VEGA/stm32f4xx_hal_msp.cpp +++ b/flight_computer/src/target/VEGA/stm32f4xx_hal_msp.cpp @@ -1,23 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32f4xx_hal_msp.c - * @brief This file provides code for the MSP Initialization - * and de-Initialization codes. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2022 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes ------------------------------------------------------------------*/ #include "main.hpp" diff --git a/flight_computer/src/target/VEGA/stm32f4xx_hal_timebase_tim.cpp b/flight_computer/src/target/VEGA/stm32f4xx_hal_timebase_tim.cpp index 8523f2eb..a62a35c0 100644 --- a/flight_computer/src/target/VEGA/stm32f4xx_hal_timebase_tim.cpp +++ b/flight_computer/src/target/VEGA/stm32f4xx_hal_timebase_tim.cpp @@ -1,22 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32f4xx_hal_timebase_TIM.c - * @brief HAL time base based on the hardware TIM. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2022 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" diff --git a/flight_computer/src/target/VEGA/stm32f4xx_it.cpp b/flight_computer/src/target/VEGA/stm32f4xx_it.cpp index 08a6801e..61880733 100644 --- a/flight_computer/src/target/VEGA/stm32f4xx_it.cpp +++ b/flight_computer/src/target/VEGA/stm32f4xx_it.cpp @@ -1,22 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32f4xx_it.c - * @brief Interrupt Service Routines. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2022 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_it.h" diff --git a/flight_computer/src/target/VEGA/stm32f4xx_it.h b/flight_computer/src/target/VEGA/stm32f4xx_it.h index a16807dc..847887db 100644 --- a/flight_computer/src/target/VEGA/stm32f4xx_it.h +++ b/flight_computer/src/target/VEGA/stm32f4xx_it.h @@ -1,22 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32f4xx_it.h - * @brief This file contains the headers of the interrupt handlers. - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2022 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32F4xx_IT_H diff --git a/flight_computer/src/target/VEGA/system_stm32f4xx.cpp b/flight_computer/src/target/VEGA/system_stm32f4xx.cpp index 730d0a2d..134d83d8 100644 --- a/flight_computer/src/target/VEGA/system_stm32f4xx.cpp +++ b/flight_computer/src/target/VEGA/system_stm32f4xx.cpp @@ -1,6 +1,13 @@ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. + /** ****************************************************************************** - * @file system_stm32f4xx.c + * @file system_stm32f4xx.cpp * @author MCD Application Team * @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File. * @@ -17,20 +24,6 @@ * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must * be called whenever the core clock is changed * during program execution. - * - * - ****************************************************************************** - * @attention - * - *

© Copyright (c) 2017 STMicroelectronics. - * All rights reserved.

- * - * This software component is licensed by ST under BSD 3-Clause license, - * the "License"; You may not use this file except in compliance with the - * License. You may obtain a copy of the License at: - * opensource.org/licenses/BSD-3-Clause - * - ****************************************************************************** */ /** @addtogroup CMSIS diff --git a/flight_computer/src/usb/msc/emfat.c b/flight_computer/src/usb/msc/emfat.c index 39216266..814803f9 100644 --- a/flight_computer/src/usb/msc/emfat.c +++ b/flight_computer/src/usb/msc/emfat.c @@ -1,32 +1,10 @@ -/* - * Derived from - * https://github.com/fetisov/emfat/blob/master/project/emfat.c - * version: 1.1 (2.04.2017) - */ - -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 by Sergey Fetisov - * - * 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. - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from emfat (https://github.com/fetisov/emfat/blob/master/project/emfat.c), +/// released under MIT License. #include "emfat.h" diff --git a/flight_computer/src/usb/msc/emfat.h b/flight_computer/src/usb/msc/emfat.h index cbaa6e70..8bbac1c4 100644 --- a/flight_computer/src/usb/msc/emfat.h +++ b/flight_computer/src/usb/msc/emfat.h @@ -1,32 +1,10 @@ -/* - * Derived from - * https://github.com/fetisov/emfat/blob/master/project/emfat.c - * version: 1.0 (4.01.2015) - */ - -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 by Sergey Fetisov - * - * 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. - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from emfat (https://github.com/fetisov/emfat/blob/master/project/emfat.c), +/// released under MIT License. #pragma once diff --git a/flight_computer/src/usb/msc/emfat_file.cpp b/flight_computer/src/usb/msc/emfat_file.cpp index f73f4290..af5b4014 100644 --- a/flight_computer/src/usb/msc/emfat_file.cpp +++ b/flight_computer/src/usb/msc/emfat_file.cpp @@ -1,28 +1,11 @@ -/* - * This file was forked from Cleanflight and Betaflight. - * - * See the Cleanflight and Betaflight License below. - * - * Cleanflight and Betaflight are free software. You can redistribute - * this software and/or modify this software under the terms of the - * GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) - * any later version. - * - * Cleanflight and Betaflight are distributed in the hope that they - * will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this software. - * - * If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. -/* - * Author: jflyper@github.com - */ #include "emfat_file.h" #include diff --git a/flight_computer/src/usb/msc/emfat_file.h b/flight_computer/src/usb/msc/emfat_file.h index 7e9b6b83..2f7e59dc 100644 --- a/flight_computer/src/usb/msc/emfat_file.h +++ b/flight_computer/src/usb/msc/emfat_file.h @@ -1,24 +1,10 @@ -/* - * This file was forked from Cleanflight and Betaflight. - * - * See the Cleanflight and Betaflight License below. - * - * Cleanflight and Betaflight are free software. You can redistribute - * this software and/or modify this software under the terms of the - * GNU General Public License as published by the Free Software - * Foundation, either version 3 of the License, or (at your option) - * any later version. - * - * Cleanflight and Betaflight are distributed in the hope that they - * will be useful, but WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this software. - * - * If not, see . - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Betaflight (https://github.com/betaflight/betaflight), +/// released under GNU General Public License v3.0. #pragma once diff --git a/flight_computer/src/usb/msc_disk.c b/flight_computer/src/usb/msc_disk.c index 0fd2e3b4..677001de 100644 --- a/flight_computer/src/usb/msc_disk.c +++ b/flight_computer/src/usb/msc_disk.c @@ -1,27 +1,10 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2019 Ha Thach (tinyusb.org) - * - * 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. - * - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from tinyusb (https://github.com/hathach/tinyusb), +/// released under MIT License. #include "tusb.h" #include "usb/msc/emfat.h" diff --git a/flight_computer/src/usb/tusb_config.h b/flight_computer/src/usb/tusb_config.h index 8cf78eec..6f463405 100644 --- a/flight_computer/src/usb/tusb_config.h +++ b/flight_computer/src/usb/tusb_config.h @@ -1,27 +1,10 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2019 Ha Thach (tinyusb.org) - * - * 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. - * - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from tinyusb (https://github.com/hathach/tinyusb), +/// released under MIT License. #pragma once diff --git a/flight_computer/src/usb/usb_descriptors.c b/flight_computer/src/usb/usb_descriptors.c index b95ae965..92cfcdf8 100644 --- a/flight_computer/src/usb/usb_descriptors.c +++ b/flight_computer/src/usb/usb_descriptors.c @@ -1,27 +1,10 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2019 Ha Thach (tinyusb.org) - * - * 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. - * - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from tinyusb (https://github.com/hathach/tinyusb), +/// released under MIT License. #include "tusb.h" diff --git a/ground_station/dfu_reboot.py b/ground_station/dfu_reboot.py index 702f6406..d8bee169 100644 --- a/ground_station/dfu_reboot.py +++ b/ground_station/dfu_reboot.py @@ -1,34 +1,16 @@ +# Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Additional notice: +# This file was adapted from Florian Baumgartner's ESP32 IoT Framework +# (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + ############################################################################### # file dfu_reboot.py ############################################################################### # brief Sends DFU command to specified devices over USB interface ############################################################################### -# author Florian Baumgartner -# version 1.0 -# date 2022-08-02 -############################################################################### -# MIT License -# -# Copyright (c) 2022 Crelin - Florian Baumgartner -# -# 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. -############################################################################### # Use Zadig 2.7 (or later) to install drivers: # Install driver for "TinyUSB DFU_RT (Interface x)": libusb-win32 (v1.2.6.0) diff --git a/ground_station/packet_installer.py b/ground_station/packet_installer.py index b16c718f..cfaa13b8 100644 --- a/ground_station/packet_installer.py +++ b/ground_station/packet_installer.py @@ -1,34 +1,10 @@ -############################################################################### -# file dfu_reboot.py -############################################################################### -# brief Sends DFU command to specified devices over USB interface -############################################################################### -# author Florian Baumgartner -# version 1.0 -# date 2022-08-02 -############################################################################### -# MIT License +# Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH # -# Copyright (c) 2022 Crelin - Florian Baumgartner +# SPDX-License-Identifier: GPL-3.0-or-later # -# 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. -############################################################################### +# Additional notice: +# This file was adapted from Florian Baumgartner's ESP32 IoT Framework +# (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. def installPackages(): import sys diff --git a/ground_station/serial_console.py b/ground_station/serial_console.py index d96c9161..6d5de9d9 100644 --- a/ground_station/serial_console.py +++ b/ground_station/serial_console.py @@ -1,34 +1,16 @@ +# Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Additional notice: +# This file was adapted from Florian Baumgartner's ESP32 IoT Framework +# (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + ############################################################################### # file serial_console.py ############################################################################### # brief Handles physical communication to specified COM-Port (USB CDC) ############################################################################### -# author Florian Baumgartner -# version 1.0 -# date 2022-08-02 -############################################################################### -# MIT License -# -# Copyright (c) 2022 Crelin - Florian Baumgartner -# -# 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. -############################################################################### import sys import time diff --git a/ground_station/serial_terminal.py b/ground_station/serial_terminal.py index 8975a6ad..1b8a31bd 100644 --- a/ground_station/serial_terminal.py +++ b/ground_station/serial_terminal.py @@ -1,34 +1,16 @@ +# Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Additional notice: +# This file was adapted from Florian Baumgartner's ESP32 IoT Framework +# (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + ############################################################################### # file serial_terminal.py ############################################################################### # brief Uses Windows 10 Terminal to open specified COM-Ports in multiple tabs ############################################################################### -# author Florian Baumgartner -# version 1.0 -# date 2022-08-02 -############################################################################### -# MIT License -# -# Copyright (c) 2022 Crelin - Florian Baumgartner -# -# 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. -############################################################################### # Disabling Warning of closing multiple tabs in Windows Terminal # https://github.com/microsoft/terminal/issues/5125 diff --git a/ground_station/src/USB.cpp b/ground_station/src/USB.cpp index cbe8c034..203428af 100644 --- a/ground_station/src/USB.cpp +++ b/ground_station/src/USB.cpp @@ -1,26 +1,12 @@ -/****************************************************************************** - * file USB.cpp - ******************************************************************************* - * brief High-Level Wrapper for native USB support (device only) - ******************************************************************************* - * author Espressif Systems & Florian Baumgartner - * version 1.0 - * date 2022-08-02 - ******************************************************************************* - * Copyright 2015-2020 Espressif Systems (Shanghai) PTE LTD - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * 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. - ******************************************************************************/ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Florian Baumgartner's ESP32 IoT Framework +/// (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + +/// High-Level Wrapper for native USB support (device only) #include "USB.h" diff --git a/ground_station/src/console.cpp b/ground_station/src/console.cpp index 16dea8ed..3aacc108 100644 --- a/ground_station/src/console.cpp +++ b/ground_station/src/console.cpp @@ -1,34 +1,12 @@ -/****************************************************************************** - * file console.cpp - ******************************************************************************* - * brief Wrapper for Serial Debugging (threadsafe, buffered, colorized, etc.) - ******************************************************************************* - * author Florian Baumgartner - * version 1.0 - * date 2022-08-02 - ******************************************************************************* - * MIT License - * - * Copyright (c) 2022 Crelin - Florian Baumgartner - * - * 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. - ******************************************************************************/ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Florian Baumgartner's ESP32 IoT Framework +/// (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + +/// Wrapper for Serial Debugging (threadsafe, buffered, colorized, etc.) #include "console.hpp" diff --git a/ground_station/src/console.hpp b/ground_station/src/console.hpp index d83d0c81..fd513099 100644 --- a/ground_station/src/console.hpp +++ b/ground_station/src/console.hpp @@ -1,34 +1,10 @@ -/****************************************************************************** - * file console.hpp - ******************************************************************************* - * brief Wrapper for Serial Debugging (threadsafe, buffered, colorized, etc.) - ******************************************************************************* - * author Florian Baumgartner - * version 1.0 - * date 2022-08-02 - ******************************************************************************* - * MIT License - * - * Copyright (c) 2022 Crelin - Florian Baumgartner - * - * 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. - ******************************************************************************/ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Florian Baumgartner's ESP32 IoT Framework +/// (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. #ifndef CONSOLE_H #define CONSOLE_H diff --git a/ground_station/src/utils.cpp b/ground_station/src/utils.cpp index 0411e5e6..11a28fd4 100644 --- a/ground_station/src/utils.cpp +++ b/ground_station/src/utils.cpp @@ -1,34 +1,12 @@ -/****************************************************************************** - * file utils.cpp - ******************************************************************************* - * brief General utilities for file system support, MSC, configuration, etc. - ******************************************************************************* - * author Florian Baumgartner - * version 1.0 - * date 2022-08-02 - ******************************************************************************* - * MIT License - * - * Copyright (c) 2022 Crelin - Florian Baumgartner - * - * 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. - ******************************************************************************/ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Florian Baumgartner's ESP32 IoT Framework +/// (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + +/// General utilities for file system support, MSC, configuration, etc. #include "utils.hpp" #include "Adafruit_SPIFlash.h" diff --git a/ground_station/src/utils.hpp b/ground_station/src/utils.hpp index e2f1ee86..5f6821e2 100644 --- a/ground_station/src/utils.hpp +++ b/ground_station/src/utils.hpp @@ -1,34 +1,11 @@ -/****************************************************************************** - * file utils.hpp - ******************************************************************************* - * brief General utilities for file system support, MSC, configuration, etc. - ******************************************************************************* - * author Florian Baumgartner - * version 1.0 - * date 2022-08-02 - ******************************************************************************* - * MIT License - * - * Copyright (c) 2022 Crelin - Florian Baumgartner - * - * 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. - ******************************************************************************/ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from Florian Baumgartner's ESP32 IoT Framework +/// (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + #pragma once #include diff --git a/ground_station/uf2_loader.py b/ground_station/uf2_loader.py index c09c877f..71389ec1 100644 --- a/ground_station/uf2_loader.py +++ b/ground_station/uf2_loader.py @@ -1,34 +1,16 @@ +# Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Additional notice: +# This file was adapted from Florian Baumgartner's ESP32 IoT Framework +# (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + ############################################################################### # file uf2_loader.py ############################################################################### # brief Binary executable to UF2-Format converter and automatic download tool ############################################################################### -# author Microsoft & Florian Baumgartner -# version 1.0 -# date 2022-08-02 -############################################################################### -# MIT License -# -# Copyright (c) 2022 Crelin - Florian Baumgartner -# -# 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. -############################################################################### import sys import struct diff --git a/ground_station/upload_script.py b/ground_station/upload_script.py index 0e80cfd8..62650528 100644 --- a/ground_station/upload_script.py +++ b/ground_station/upload_script.py @@ -1,34 +1,16 @@ +# Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Additional notice: +# This file was adapted from Florian Baumgartner's ESP32 IoT Framework +# (https://github.com/FlorianBaumgartner/ESP32_IoT_Framework), released under MIT License. + ############################################################################### # file upload_script.py ############################################################################### # brief Main python script that is executed by Platform IO on firmware upload ############################################################################### -# author Florian Baumgartner -# version 1.0 -# date 2022-08-02 -############################################################################### -# MIT License -# -# Copyright (c) 2022 Crelin - Florian Baumgartner -# -# 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. -############################################################################### Import("env") diff --git a/telemetry/src/st/stm32g0xx_hal_conf.h b/telemetry/src/st/stm32g0xx_hal_conf.h index e0eea42f..3f34210b 100644 --- a/telemetry/src/st/stm32g0xx_hal_conf.h +++ b/telemetry/src/st/stm32g0xx_hal_conf.h @@ -1,22 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32g0xx_hal_conf.h - * @author MCD Application Team - * @brief HAL configuration file. - ****************************************************************************** - * @attention - * - * Copyright (c) 2018 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef STM32G0xx_HAL_CONF_H diff --git a/telemetry/src/st/stm32g0xx_hal_msp.c b/telemetry/src/st/stm32g0xx_hal_msp.c index dba0ada7..ddc7fd6c 100644 --- a/telemetry/src/st/stm32g0xx_hal_msp.c +++ b/telemetry/src/st/stm32g0xx_hal_msp.c @@ -1,22 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32g0xx_hal_msp.c - * @brief This file provides code for the MSP Initialization - * and de-Initialization codes. - ****************************************************************************** - * @attention - * - * Copyright (c) 2022 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes ------------------------------------------------------------------*/ #include "Main.hpp" diff --git a/telemetry/src/st/stm32g0xx_it.c b/telemetry/src/st/stm32g0xx_it.c index 0b2b7155..68a4a925 100644 --- a/telemetry/src/st/stm32g0xx_it.c +++ b/telemetry/src/st/stm32g0xx_it.c @@ -1,21 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32g0xx_it.c - * @brief Interrupt Service Routines. - ****************************************************************************** - * @attention - * - * Copyright (c) 2022 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes ------------------------------------------------------------------*/ #include "stm32g0xx_it.h" diff --git a/telemetry/src/st/stm32g0xx_it.h b/telemetry/src/st/stm32g0xx_it.h index 57197de2..19934e1d 100644 --- a/telemetry/src/st/stm32g0xx_it.h +++ b/telemetry/src/st/stm32g0xx_it.h @@ -1,21 +1,9 @@ -/* USER CODE BEGIN Header */ -/** - ****************************************************************************** - * @file stm32g0xx_it.h - * @brief This file contains the headers of the interrupt handlers. - ****************************************************************************** - * @attention - * - * Copyright (c) 2022 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ -/* USER CODE END Header */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __STM32G0xx_IT_H diff --git a/telemetry/src/st/syscalls.c b/telemetry/src/st/syscalls.c index 8400e885..f6413311 100644 --- a/telemetry/src/st/syscalls.c +++ b/telemetry/src/st/syscalls.c @@ -1,24 +1,9 @@ -/** - ****************************************************************************** - * @file syscalls.c - * @author Auto-generated by STM32CubeIDE - * @brief STM32CubeIDE Minimal System calls file - * - * For more information about which c-functions - * need which of these lowlevel functions - * please consult the Newlib libc-manual - ****************************************************************************** - * @attention - * - * Copyright (c) 2021 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes */ #include diff --git a/telemetry/src/st/sysmem.c b/telemetry/src/st/sysmem.c index 4cc60371..c7a0702c 100644 --- a/telemetry/src/st/sysmem.c +++ b/telemetry/src/st/sysmem.c @@ -1,24 +1,9 @@ -/** - ****************************************************************************** - * @file sysmem.c - * @author Generated by STM32CubeIDE - * @brief STM32CubeIDE System Memory calls file - * - * For more information about which C functions - * need which of these lowlevel functions - * please consult the newlib libc manual - ****************************************************************************** - * @attention - * - * Copyright (c) 2021 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** - */ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. /* Includes */ #include diff --git a/telemetry/src/st/system_stm32g0xx.c b/telemetry/src/st/system_stm32g0xx.c index 0adb73ac..2d77577e 100644 --- a/telemetry/src/st/system_stm32g0xx.c +++ b/telemetry/src/st/system_stm32g0xx.c @@ -1,3 +1,10 @@ +/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// +/// Additional notice: +/// This file was adapted from STMicroelectronics, released under BSD 3-Clause license. + /** ****************************************************************************** * @file system_stm32g0xx.c @@ -50,17 +57,6 @@ * Require 48MHz for RNG | Disabled *----------------------------------------------------------------------------- *============================================================================= - ****************************************************************************** - * @attention - * - * Copyright (c) 2018-2021 STMicroelectronics. - * All rights reserved. - * - * This software is licensed under terms that can be found in the LICENSE file - * in the root directory of this software component. - * If no LICENSE file comes with this software, it is provided AS-IS. - * - ****************************************************************************** */ /** @addtogroup CMSIS * @{