Skip to content

Commit ce1601d

Browse files
committed
docs(license): fix and complete the license scope list
Fix the pinmap.h and STM32_USB_*_Library paths, which did not exist. List the directories that were missing or wrongly attributed: - cores/arduino/api, cores/arduino/stm32 (LGPL-2.1) - libraries using LGPL-2.1 or BSD 3-Clause (EEPROM, Wire, USBDevice, SubGhz, RGB_LED_TLC59731, SrcWrapper, ...) - the BSD 3-Clause headers in cores/arduino and variants - the MIT files (HardwareTimer, new.cpp, Udp.h, VirtIOSerial, ...) Signed-off-by: Frederic Pillon <frederic.pillon@st.com> Assisted-by: GitHub Copilot
1 parent f300098 commit ce1601d

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

‎License.md‎

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,51 @@ This files includes licensing information for parts of this repository.
55
66
[LGPLv2.1](#lgplv21) is used for:
77

8-
* `cores/arduino/*.*` mainly contains modified files from Arduino.
8+
* `cores/arduino/*.*` mainly contains modified files from Arduino, except the
9+
files listed under [BSD 3-Clause License](#bsd-3-clause-license) and
10+
[MIT License](#mit-license)
11+
* `cores/arduino/stm32`
12+
* `cores/arduino/api` (own copy of the license in `cores/arduino/api/LICENSE`),
13+
except the files listed under [MIT License](#mit-license)
14+
* `libraries/EEPROM`, `libraries/IWatchdog`, `libraries/Keyboard`,
15+
`libraries/Mouse`, `libraries/Servo`, `libraries/SoftwareSerial`,
16+
`libraries/SPI`, `libraries/Wire` - except the files listed under
17+
[BSD 3-Clause License](#bsd-3-clause-license)
18+
* `libraries/USBDevice/src/USBSerial.cpp` and `libraries/USBDevice/inc/USBSerial.h`
919

1020
[BSD 3-Clause License](#bsd-3-clause-license) is used for:
1121

1222
* `system/Drivers/STM32*xx_HAL_Driver` folders include the STMicroelectronics HAL Drivers
1323
* `system/Middlewares/OpenAMP`
1424
* `libraries/VirtIO` - except virtio implementation (see [MIT License](#mit-license))
1525
* `libraries/SrcWrapper/inc/PinName*.h`
26+
* `cores/arduino/variant.h`, `cores/arduino/pins_arduino_analog.h` and
27+
`cores/arduino/pins_arduino_digital.h`
28+
* `libraries/EEPROM/src/utility/stm32_eeprom.*`
29+
* `libraries/Wire/src/utility/twi.*`
30+
* `libraries/USBDevice/src/cdc/cdc_queue.c` and `libraries/USBDevice/inc/cdc_queue.h`
31+
* `libraries/I3C`, `libraries/RGB_LED_TLC59731` and `libraries/SubGhz`
32+
* `libraries/SrcWrapper` - files with a BSD 3-Clause header, mainly
33+
`libraries/SrcWrapper/src/stm32` and `libraries/SrcWrapper/inc`
34+
* `variants` - files with a BSD 3-Clause header, such as `PeripheralPins.c`,
35+
`variant_generic.*` and `generic_clock.c`
1636

1737
[Ultimate Liberty License](#Ultimate-Liberty-License) is used for:
18-
* `system/Middlewares/STM32_USB_*_Library` folders
19-
* `libraries/USBDevice` (see header)
38+
* `system/Middlewares/ST/STM32_USB_*_Library` folders
39+
* `libraries/USBDevice` - files with a SLA0044 header, see the
40+
[restrictions](#ultimate-liberty-license) of this license
2041

2142
[Apache License](#apache-license) is used for:
2243
* `system/Drivers/CMSIS` folder includes the STMicroelectronics CMSIS device
23-
* `system/include/include/pinmap.h`
44+
* `libraries/SrcWrapper/inc/pinmap.h`
2445
* `libraries/SrcWrapper/src/stm32/pinmap.c`
2546
* `tools/platformio/platformio-build.py`
2647

27-
[MIT License](#mit-license)
28-
* `libraries/VirtIO/*/virtio*`
48+
[MIT License](#mit-license) is used for:
49+
* `libraries/VirtIO/*/virtio*` and `libraries/VirtIO/*/VirtIOSerial.*`
50+
* `libraries/SrcWrapper/*/HardwareTimer.*`
51+
* `libraries/SrcWrapper/src/new.cpp`
52+
* `cores/arduino/api/Udp.h` and `cores/arduino/api/deprecated-avr-comp/avr/pgmspace.h`
2953

3054
> [!NOTE]
3155
> `system/STM32*xx/system_stm32*xx.c` uses same license than `system/Drivers/CMSIS`

0 commit comments

Comments
 (0)