diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 84e6952..336928c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,7 +19,7 @@ Here is a quick summary how contributions work on GitHub: 1. Fork the repository to your local GitHub account 2. Clone the repository to your local computer using `git clone https://github.com/your-github-username/repository-name.git` 3. Create a new branch where you will later add your changes using `git switch -c branch-name` -4. Update the files to fix the issue or add new features +4. Update the files to fix the issue or add new features. Please add your copyright notice in a new line if you made significant changes to the file. 5. Use `git add your-changed-files` to add the file contents of the changed files to the so-called staging area (means they are prepared to be committed) 6. Run `git commit -m "Short message to describe the changes"` to add the staged files to the respository diff --git a/boards/arm/mppt1210hus_0v4/pinmux.c b/boards/arm/mppt1210hus_0v4/pinmux.c index c096877..dc1475b 100755 --- a/boards/arm/mppt1210hus_0v4/pinmux.c +++ b/boards/arm/mppt1210hus_0v4/pinmux.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Martin Jäger (Libre Solar) + * Copyright (c) 2019 Martin Jäger / Libre Solar * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/lib/Adafruit_GFX/logo.h b/lib/Adafruit_GFX/logo.h index 14bc004..90ce75c 100644 --- a/lib/Adafruit_GFX/logo.h +++ b/lib/Adafruit_GFX/logo.h @@ -1,5 +1,7 @@ /* - * Libre Solar logo + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 */ #include diff --git a/lib/ESP32/ESP32.cpp b/lib/ESP32/ESP32.cpp index 2c7f6c3..4d143bc 100644 --- a/lib/ESP32/ESP32.cpp +++ b/lib/ESP32/ESP32.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "ESP32.h" diff --git a/lib/ESP32/ESP32.h b/lib/ESP32/ESP32.h index a365209..4d9bb25 100644 --- a/lib/ESP32/ESP32.h +++ b/lib/ESP32/ESP32.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __ESP32_H__ diff --git a/src/adc_dma.cpp b/src/adc_dma.cpp index 35fe79b..70a1daa 100644 --- a/src/adc_dma.cpp +++ b/src/adc_dma.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "adc_dma.h" diff --git a/src/adc_dma.h b/src/adc_dma.h index 628a96c..592bc4e 100644 --- a/src/adc_dma.h +++ b/src/adc_dma.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef ADC_DMA_H diff --git a/src/bat_charger.cpp b/src/bat_charger.cpp index 83b49b2..8563152 100644 --- a/src/bat_charger.cpp +++ b/src/bat_charger.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "bat_charger.h" diff --git a/src/bat_charger.h b/src/bat_charger.h index b083e49..3e2d63f 100644 --- a/src/bat_charger.h +++ b/src/bat_charger.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef BAT_CHARGER_H diff --git a/src/bl_support.cpp b/src/bl_support.cpp index 723a02d..47d7970 100644 --- a/src/bl_support.cpp +++ b/src/bl_support.cpp @@ -1,28 +1,11 @@ /* - * Scene Connect Bootloader - * Copyright (C) 2019 Scene Connect - * https://www.scene.community/ + * Copyright (c) 2019 Scene Connect Ltd. * - * This code is developed based on the Okra Bootloader from Okra Solar. - * - * 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. + * This code is based on the bootloader developed by Okra Solar. * + * SPDX-License-Identifier: Apache-2.0 */ + #ifdef BOOTLOADER_ENABLED #include "bl_support.h" diff --git a/src/bl_support.h b/src/bl_support.h index 90cb377..f22184b 100644 --- a/src/bl_support.h +++ b/src/bl_support.h @@ -1,32 +1,13 @@ /* - * Scene Connect Bootloader - * Copyright (C) 2019 Scene Connect - * https://www.scene.community/ + * Copyright (c) 2019 Scene Connect Ltd. * - * This code is developed based on the Okra Bootloader from Okra Solar. - * - * 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. + * This code is based on the bootloader developed by Okra Solar. * + * SPDX-License-Identifier: Apache-2.0 */ -#ifndef BOOTLOADER_H -#define BOOTLOADER_H -#pragma once +#ifndef BL_SUPPORT_H +#define BL_SUPPORT_H #ifdef BOOTLOADER_ENABLED @@ -100,6 +81,6 @@ void flash_program(uint32_t address, uint32_t data); */ void check_bootloader(void); -#endif /*BOOTLOADER_ENABLED*/ +#endif /* BOOTLOADER_ENABLED */ -#endif /*BOOTLOADER_H*/ +#endif /* BL_SUPPORT_H */ diff --git a/src/config.h_template b/src/config.h_template index 0ea20ac..1ab1c59 100644 --- a/src/config.h_template +++ b/src/config.h_template @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef CONFIG_H diff --git a/src/data_objects.cpp b/src/data_objects.cpp index 8151d83..3442814 100644 --- a/src/data_objects.cpp +++ b/src/data_objects.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "main.h" diff --git a/src/data_objects.h b/src/data_objects.h index 7141949..3a38f3f 100644 --- a/src/data_objects.h +++ b/src/data_objects.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef DATA_OBJECTS_H diff --git a/src/dcdc.cpp b/src/dcdc.cpp index d10e05c..4dcb44a 100644 --- a/src/dcdc.cpp +++ b/src/dcdc.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "dcdc.h" diff --git a/src/dcdc.h b/src/dcdc.h index 93c02de..96d5f35 100644 --- a/src/dcdc.h +++ b/src/dcdc.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef DCDC_H diff --git a/src/debug.h b/src/debug.h index 43c9748..88078cc 100644 --- a/src/debug.h +++ b/src/debug.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef DEBUG_H diff --git a/src/device_status.cpp b/src/device_status.cpp index 025ed08..45cc3e6 100644 --- a/src/device_status.cpp +++ b/src/device_status.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "device_status.h" diff --git a/src/device_status.h b/src/device_status.h index d903b65..a637427 100644 --- a/src/device_status.h +++ b/src/device_status.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef DEVICE_STATUS_H diff --git a/src/eeprom.cpp b/src/eeprom.cpp index e1eb81b..0ab694b 100644 --- a/src/eeprom.cpp +++ b/src/eeprom.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "eeprom.h" diff --git a/src/eeprom.h b/src/eeprom.h index f40349e..9f5f2e4 100644 --- a/src/eeprom.h +++ b/src/eeprom.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef EEPROM_H diff --git a/src/ext/can.cpp b/src/ext/can.cpp index 9f9cd76..032acaf 100644 --- a/src/ext/can.cpp +++ b/src/ext/can.cpp @@ -1,17 +1,7 @@ -/* LibreSolar MPPT charge controller firmware - * Copyright (c) 2016-2018 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef __MBED__ diff --git a/src/ext/can_msg_queue.cpp b/src/ext/can_msg_queue.cpp index 7fe6af5..55ae5cb 100644 --- a/src/ext/can_msg_queue.cpp +++ b/src/ext/can_msg_queue.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ + #if defined(__MBED__) && !defined(UNIT_TEST) #include "mbed.h" diff --git a/src/ext/can_msg_queue.h b/src/ext/can_msg_queue.h index 8e232f5..ec87a09 100644 --- a/src/ext/can_msg_queue.h +++ b/src/ext/can_msg_queue.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #ifndef CAN_MSG_QUEUE_H #define CAN_MSG_QUEUE_H diff --git a/src/ext/ext.cpp b/src/ext/ext.cpp index 2e0679e..d550ad2 100644 --- a/src/ext/ext.cpp +++ b/src/ext/ext.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "ext.h" diff --git a/src/ext/ext.h b/src/ext/ext.h index dbce16d..7ae30c2 100644 --- a/src/ext/ext.h +++ b/src/ext/ext.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef EXT_H_ diff --git a/src/ext/oled.cpp b/src/ext/oled.cpp index 4da3df5..58ad684 100644 --- a/src/ext/oled.cpp +++ b/src/ext/oled.cpp @@ -1,17 +1,7 @@ -/* LibreSolar MPPT charge controller firmware - * Copyright (c) 2016-2018 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef UNIT_TEST diff --git a/src/ext/serial.cpp b/src/ext/serial.cpp index f70660b..954c6ae 100644 --- a/src/ext/serial.cpp +++ b/src/ext/serial.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef __MBED__ diff --git a/src/ext/template.cpp b/src/ext/template.cpp index 15527fc..55cc31c 100644 --- a/src/ext/template.cpp +++ b/src/ext/template.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "config.h" diff --git a/src/ext/wifi.cpp b/src/ext/wifi.cpp index 6fec96a..7da3858 100644 --- a/src/ext/wifi.cpp +++ b/src/ext/wifi.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #ifndef UNIT_TEST diff --git a/src/half_bridge.cpp b/src/half_bridge.cpp index f53252a..595565b 100644 --- a/src/half_bridge.cpp +++ b/src/half_bridge.cpp @@ -1,20 +1,9 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ - #include "half_bridge.h" #include "mcu.h" diff --git a/src/half_bridge.h b/src/half_bridge.h index eba0fbd..01aedbf 100644 --- a/src/half_bridge.h +++ b/src/half_bridge.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef HALF_BRIDGE_H diff --git a/src/hardware.cpp b/src/hardware.cpp index d4784ad..07dbfc6 100644 --- a/src/hardware.cpp +++ b/src/hardware.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #if defined(__MBED__) diff --git a/src/hardware.h b/src/hardware.h index fb96e43..0a47c88 100644 --- a/src/hardware.h +++ b/src/hardware.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef HARDWARE_H diff --git a/src/leds.cpp b/src/leds.cpp index 1a23773..1d498a4 100644 --- a/src/leds.cpp +++ b/src/leds.cpp @@ -1,20 +1,9 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ - #include "leds.h" #include "pcb.h" diff --git a/src/leds.h b/src/leds.h index 9e23778..5a527bc 100644 --- a/src/leds.h +++ b/src/leds.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef LEDS_H diff --git a/src/load.cpp b/src/load.cpp index 70a49c6..9f72fd6 100644 --- a/src/load.cpp +++ b/src/load.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "load.h" diff --git a/src/load.h b/src/load.h index be22633..1ee01f3 100644 --- a/src/load.h +++ b/src/load.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef LOAD_H diff --git a/src/main.h b/src/main.h index 3e833b8..7711d2d 100644 --- a/src/main.h +++ b/src/main.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "config.h" diff --git a/src/main_mbed.cpp b/src/main_mbed.cpp index 70d885b..cae0a64 100644 --- a/src/main_mbed.cpp +++ b/src/main_mbed.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2016 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef __MBED__ diff --git a/src/main_zephyr.cpp b/src/main_zephyr.cpp index 5d23a7e..59b3339 100644 --- a/src/main_zephyr.cpp +++ b/src/main_zephyr.cpp @@ -1,17 +1,7 @@ -/* Libre Solar Battery Management System firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifdef __ZEPHYR__ diff --git a/src/mcu.h b/src/mcu.h index 8d2a4ea..509f04e 100644 --- a/src/mcu.h +++ b/src/mcu.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #ifndef MCU_H_ #define MCU_H_ diff --git a/src/pcb.h b/src/pcb.h index ceb51fb..a2ed315 100644 --- a/src/pcb.h +++ b/src/pcb.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef PCB_H diff --git a/src/pcbs/mppt_1210_hus_0v2.h b/src/pcbs/mppt_1210_hus_0v2.h index 274c4ef..b380119 100644 --- a/src/pcbs/mppt_1210_hus_0v2.h +++ b/src/pcbs/mppt_1210_hus_0v2.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef MPPT_1210_HUS_0V2_H diff --git a/src/pcbs/mppt_1210_hus_0v4.h b/src/pcbs/mppt_1210_hus_0v4.h index 9dab016..6a915a5 100644 --- a/src/pcbs/mppt_1210_hus_0v4.h +++ b/src/pcbs/mppt_1210_hus_0v4.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef MPPT_1210_HUS_0V4_H diff --git a/src/pcbs/mppt_1210_hus_0v7.h b/src/pcbs/mppt_1210_hus_0v7.h index 90edcce..b9daf45 100644 --- a/src/pcbs/mppt_1210_hus_0v7.h +++ b/src/pcbs/mppt_1210_hus_0v7.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2019 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef MPPT_1210_HUS_0V7_H diff --git a/src/pcbs/mppt_2420_lc_0v10.h b/src/pcbs/mppt_2420_lc_0v10.h index d715c86..46d7a74 100644 --- a/src/pcbs/mppt_2420_lc_0v10.h +++ b/src/pcbs/mppt_2420_lc_0v10.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef MPPT_2420_LC_0V10_H diff --git a/src/pcbs/pcb_stub.h b/src/pcbs/pcb_stub.h index 1a2eab2..6e4ebcb 100644 --- a/src/pcbs/pcb_stub.h +++ b/src/pcbs/pcb_stub.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef PCB_STUB_H diff --git a/src/pcbs/pwm_2420_lus.h b/src/pcbs/pwm_2420_lus.h index 146bdc7..03b57c4 100644 --- a/src/pcbs/pwm_2420_lus.h +++ b/src/pcbs/pwm_2420_lus.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef PWM_2420_LUS_H diff --git a/src/power_port.cpp b/src/power_port.cpp index bf66afd..17b2ce8 100644 --- a/src/power_port.cpp +++ b/src/power_port.cpp @@ -1,17 +1,7 @@ -/* LibreSolar MPPT charge controller firmware - * Copyright (c) 2016-2018 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "power_port.h" diff --git a/src/power_port.h b/src/power_port.h index 9bc06c6..ae62a02 100644 --- a/src/power_port.h +++ b/src/power_port.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2017 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef POWER_PORT_H diff --git a/src/pwm_switch.cpp b/src/pwm_switch.cpp index ff2f802..67fc63a 100644 --- a/src/pwm_switch.cpp +++ b/src/pwm_switch.cpp @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #include "pwm_switch.h" diff --git a/src/pwm_switch.h b/src/pwm_switch.h index 300b531..4468ff4 100644 --- a/src/pwm_switch.h +++ b/src/pwm_switch.h @@ -1,17 +1,7 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ #ifndef PWM_SWITCH_H diff --git a/test/adc_dma_stub.h b/test/adc_dma_stub.h index c34e2c9..be153e1 100644 --- a/test/adc_dma_stub.h +++ b/test/adc_dma_stub.h @@ -1,18 +1,9 @@ -/* LibreSolar charge controller firmware - * Copyright (c) 2016-2019 Martin Jäger (www.libre.solar) +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar * - * 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. + * SPDX-License-Identifier: Apache-2.0 */ + #ifndef ADC_DMA_STUB_H #define ADC_DMA_STUB_H diff --git a/test/main.cpp b/test/main.cpp index dad90f3..56b6811 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include "thingset.h" // handles access to internal data via communication interfaces #include "pcb.h" // hardware-specific settings #include "config.h" // user-specific configuration diff --git a/test/tests.h b/test/tests.h index a917477..64406e9 100644 --- a/test/tests.h +++ b/test/tests.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ + #include #include diff --git a/test/tests_adc_dma.cpp b/test/tests_adc_dma.cpp index 7d2fa82..b60d4d4 100644 --- a/test/tests_adc_dma.cpp +++ b/test/tests_adc_dma.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "tests.h" #include "adc_dma.h" diff --git a/test/tests_bat_charger.cpp b/test/tests_bat_charger.cpp index e3eb605..a17f973 100644 --- a/test/tests_bat_charger.cpp +++ b/test/tests_bat_charger.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "tests.h" diff --git a/test/tests_dcdc.cpp b/test/tests_dcdc.cpp index 7d2dc63..f2cbe93 100644 --- a/test/tests_dcdc.cpp +++ b/test/tests_dcdc.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "tests.h" diff --git a/test/tests_device_status.cpp b/test/tests_device_status.cpp index 5f39773..d6b0d96 100644 --- a/test/tests_device_status.cpp +++ b/test/tests_device_status.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "tests.h" diff --git a/test/tests_half_bridge.cpp b/test/tests_half_bridge.cpp index 3cc74f7..5c854f1 100644 --- a/test/tests_half_bridge.cpp +++ b/test/tests_half_bridge.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "tests.h" #include "half_bridge.h" diff --git a/test/tests_load.cpp b/test/tests_load.cpp index e6a4922..9542abd 100644 --- a/test/tests_load.cpp +++ b/test/tests_load.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "tests.h" #include "adc_dma_stub.h" diff --git a/test/tests_power_port.cpp b/test/tests_power_port.cpp index ffd8b97..e9ae68b 100644 --- a/test/tests_power_port.cpp +++ b/test/tests_power_port.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2018 Martin Jäger / Libre Solar + * + * SPDX-License-Identifier: Apache-2.0 + */ #include "tests.h" #include "adc_dma_stub.h"