diff --git a/CMakeLists.txt b/CMakeLists.txt index 089e145..8d770c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: MIT +# Copyright (c) 2023 John Watts and the LuminaSensum contributors + cmake_minimum_required(VERSION 3.25) # Initialize Mbed OS build system diff --git a/README.md b/README.md index c71ef80..6f08fa8 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,8 @@ ## License +Copyright: 2023 Casey Reeves +Copyright: 2023 John Watts +SPDX-License-Identifier: MIT + All documentation and software for this project is under the MIT license unless otherwise specified. diff --git a/include/ButtonThread.h b/include/ButtonThread.h index bb50412..5d3a2d9 100644 --- a/include/ButtonThread.h +++ b/include/ButtonThread.h @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #ifndef BUTTONTHREAD_H #define BUTTONTHREAD_H diff --git a/include/Filesystem.h b/include/Filesystem.h index cbe7453..d03d952 100644 --- a/include/Filesystem.h +++ b/include/Filesystem.h @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #ifndef FILESYSTEM_H #define FILESYSTEM_H diff --git a/include/FlashErase.h b/include/FlashErase.h index db2857b..cab4d7c 100644 --- a/include/FlashErase.h +++ b/include/FlashErase.h @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #ifndef FLASHERASE_H #define FLASHERASE_H diff --git a/include/MainBD.h b/include/MainBD.h index a9161e0..2846b96 100644 --- a/include/MainBD.h +++ b/include/MainBD.h @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #ifndef MAINBD_H #define MAINBD_H diff --git a/include/MainFilesystem.h b/include/MainFilesystem.h index 28a521d..568793d 100644 --- a/include/MainFilesystem.h +++ b/include/MainFilesystem.h @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #ifndef MAINFILESYSTEM_H #define MAINFILESYSTEM_H diff --git a/include/MyUSBMSD.h b/include/MyUSBMSD.h index 54e9785..1ee05ce 100644 --- a/include/MyUSBMSD.h +++ b/include/MyUSBMSD.h @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #ifndef MYUSBMSD_H #define MYUSBMSD_H diff --git a/scripts/build.sh b/scripts/build.sh index 05ae53d..120832a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2023 John Watts and the LuminaSensum contributors + set -e if ! test -e .boardserial; then echo "Please run scripts/findboard.sh!" diff --git a/scripts/check.sh b/scripts/check.sh index 1e730f9..da629dc 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -1,3 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2023 John Watts and the LuminaSensum contributors + set -e clang-format -i src/* include/* diff --git a/scripts/findboard.sh b/scripts/findboard.sh index f8321a5..7162711 100755 --- a/scripts/findboard.sh +++ b/scripts/findboard.sh @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2023 John Watts and the LuminaSensum contributors + set -e SERIALPATH="$PWD/.boardserial" USBDIR=/sys/bus/usb/devices diff --git a/scripts/serial.sh b/scripts/serial.sh index b742650..7c7aff5 100755 --- a/scripts/serial.sh +++ b/scripts/serial.sh @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2023 John Watts and the LuminaSensum contributors + set -e if ! test -e .boardserial; then echo "Please run scripts/findboard.sh!" diff --git a/scripts/setup-udev.sh b/scripts/setup-udev.sh index aac5997..3f6f3ad 100755 --- a/scripts/setup-udev.sh +++ b/scripts/setup-udev.sh @@ -1,4 +1,7 @@ #!/bin/bash +# SPDX-License-Identifier: MIT +# Copyright (c) 2023 John Watts and the LuminaSensum contributors + set -e RULES=/etc/udev/rules.d/60-stlink.rules test -e /etc/udev/rules.d/60-stlink.rules && exit 0 diff --git a/src/ButtonThread.cpp b/src/ButtonThread.cpp index 4ab76a2..bc20282 100644 --- a/src/ButtonThread.cpp +++ b/src/ButtonThread.cpp @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 John Watts and the LuminaSensum contributors +*/ + #include "ButtonThread.h" #include "mbed.h" diff --git a/src/Filesystem.cpp b/src/Filesystem.cpp index 96b1aa7..029423b 100644 --- a/src/Filesystem.cpp +++ b/src/Filesystem.cpp @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #include "Filesystem.h" #include "MainBD.h" #include "mbed.h" diff --git a/src/FlashErase.cpp b/src/FlashErase.cpp index 9ee65b5..f772fd9 100644 --- a/src/FlashErase.cpp +++ b/src/FlashErase.cpp @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #include "FlashErase.h" #include "mbed.h" #include diff --git a/src/MainBD.cpp b/src/MainBD.cpp index 987d9e3..0c3bd0a 100644 --- a/src/MainBD.cpp +++ b/src/MainBD.cpp @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #if !DEVICE_QSPI #error[NOT_SUPPORTED] QSPI not supported for this target #endif diff --git a/src/MainFilesystem.cpp b/src/MainFilesystem.cpp index 74f7218..bbca88a 100644 --- a/src/MainFilesystem.cpp +++ b/src/MainFilesystem.cpp @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #include "MainFilesystem.h" #include "mbed.h" diff --git a/src/MyUSBMSD.cpp b/src/MyUSBMSD.cpp index 4403cf8..0b23a56 100644 --- a/src/MyUSBMSD.cpp +++ b/src/MyUSBMSD.cpp @@ -1,3 +1,8 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +*/ + #include "MyUSBMSD.h" #include "ButtonThread.h" #include "Filesystem.h" diff --git a/src/main.cpp b/src/main.cpp index 39512dd..2c834bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,9 @@ +/* +SPDX-License-Identifier: MIT +Copyright (c) 2023 Casey Reeves and the LuminaSensum contributors +Copyright (c) 2023 John Watts and the LuminaSensum contributors +*/ + #include "ButtonThread.h" #include "Filesystem.h" #include "FlashErase.h"