File headers shortened using SPDX-License-Identifier
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ Here is a quick summary how contributions work on GitHub:
|
|||||||
1. Fork the repository to your local GitHub account
|
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`
|
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`
|
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
|
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)
|
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
|
6. Run `git commit -m "Short message to describe the changes"` to add the staged files to the respository
|
||||||
|
|||||||
@@ -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
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Libre Solar logo
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ESP32.h"
|
#include "ESP32.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __ESP32_H__
|
#ifndef __ESP32_H__
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "adc_dma.h"
|
#include "adc_dma.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ADC_DMA_H
|
#ifndef ADC_DMA_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "bat_charger.h"
|
#include "bat_charger.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef BAT_CHARGER_H
|
#ifndef BAT_CHARGER_H
|
||||||
|
|||||||
+4
-21
@@ -1,28 +1,11 @@
|
|||||||
/*
|
/*
|
||||||
* Scene Connect Bootloader
|
* Copyright (c) 2019 Scene Connect Ltd.
|
||||||
* Copyright (C) 2019 Scene Connect
|
|
||||||
* https://www.scene.community/
|
|
||||||
*
|
*
|
||||||
* This code is developed based on the Okra Bootloader from Okra Solar.
|
* This code is based on the bootloader developed by 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.
|
|
||||||
*
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef BOOTLOADER_ENABLED
|
#ifdef BOOTLOADER_ENABLED
|
||||||
|
|
||||||
#include "bl_support.h"
|
#include "bl_support.h"
|
||||||
|
|||||||
+7
-26
@@ -1,32 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
* Scene Connect Bootloader
|
* Copyright (c) 2019 Scene Connect Ltd.
|
||||||
* Copyright (C) 2019 Scene Connect
|
|
||||||
* https://www.scene.community/
|
|
||||||
*
|
*
|
||||||
* This code is developed based on the Okra Bootloader from Okra Solar.
|
* This code is based on the bootloader developed by 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.
|
|
||||||
*
|
*
|
||||||
|
* 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
|
#ifdef BOOTLOADER_ENABLED
|
||||||
|
|
||||||
@@ -100,6 +81,6 @@ void flash_program(uint32_t address, uint32_t data);
|
|||||||
*/
|
*/
|
||||||
void check_bootloader(void);
|
void check_bootloader(void);
|
||||||
|
|
||||||
#endif /*BOOTLOADER_ENABLED*/
|
#endif /* BOOTLOADER_ENABLED */
|
||||||
|
|
||||||
#endif /*BOOTLOADER_H*/
|
#endif /* BL_SUPPORT_H */
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_H
|
#ifndef CONFIG_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DATA_OBJECTS_H
|
#ifndef DATA_OBJECTS_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dcdc.h"
|
#include "dcdc.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DCDC_H
|
#ifndef DCDC_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEBUG_H
|
#ifndef DEBUG_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "device_status.h"
|
#include "device_status.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEVICE_STATUS_H
|
#ifndef DEVICE_STATUS_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EEPROM_H
|
#ifndef EEPROM_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __MBED__
|
#ifdef __MBED__
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2017 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#if defined(__MBED__) && !defined(UNIT_TEST)
|
#if defined(__MBED__) && !defined(UNIT_TEST)
|
||||||
|
|
||||||
#include "mbed.h"
|
#include "mbed.h"
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2017 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef CAN_MSG_QUEUE_H
|
#ifndef CAN_MSG_QUEUE_H
|
||||||
#define CAN_MSG_QUEUE_H
|
#define CAN_MSG_QUEUE_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ext.h"
|
#include "ext.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EXT_H_
|
#ifndef EXT_H_
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef UNIT_TEST
|
#ifndef UNIT_TEST
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __MBED__
|
#ifdef __MBED__
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef UNIT_TEST
|
#ifndef UNIT_TEST
|
||||||
|
|
||||||
|
|||||||
+3
-14
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "half_bridge.h"
|
#include "half_bridge.h"
|
||||||
|
|
||||||
#include "mcu.h"
|
#include "mcu.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HALF_BRIDGE_H
|
#ifndef HALF_BRIDGE_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__MBED__)
|
#if defined(__MBED__)
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HARDWARE_H
|
#ifndef HARDWARE_H
|
||||||
|
|||||||
+3
-14
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "leds.h"
|
#include "leds.h"
|
||||||
#include "pcb.h"
|
#include "pcb.h"
|
||||||
|
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LEDS_H
|
#ifndef LEDS_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "load.h"
|
#include "load.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef LOAD_H
|
#ifndef LOAD_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __MBED__
|
#ifdef __MBED__
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __ZEPHYR__
|
#ifdef __ZEPHYR__
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2019 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef MCU_H_
|
#ifndef MCU_H_
|
||||||
#define MCU_H_
|
#define MCU_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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PCB_H
|
#ifndef PCB_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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MPPT_1210_HUS_0V2_H
|
#ifndef 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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MPPT_1210_HUS_0V4_H
|
#ifndef 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) 2019 Martin Jäger / Libre Solar
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MPPT_1210_HUS_0V7_H
|
#ifndef 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) 2017 Martin Jäger / Libre Solar
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MPPT_2420_LC_0V10_H
|
#ifndef MPPT_2420_LC_0V10_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PCB_STUB_H
|
#ifndef PCB_STUB_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PWM_2420_LUS_H
|
#ifndef PWM_2420_LUS_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "power_port.h"
|
#include "power_port.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef POWER_PORT_H
|
#ifndef POWER_PORT_H
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pwm_switch.h"
|
#include "pwm_switch.h"
|
||||||
|
|||||||
+3
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PWM_SWITCH_H
|
#ifndef PWM_SWITCH_H
|
||||||
|
|||||||
+4
-13
@@ -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");
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ADC_DMA_STUB_H
|
#ifndef ADC_DMA_STUB_H
|
||||||
#define ADC_DMA_STUB_H
|
#define ADC_DMA_STUB_H
|
||||||
|
|
||||||
|
|||||||
@@ -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 "thingset.h" // handles access to internal data via communication interfaces
|
||||||
#include "pcb.h" // hardware-specific settings
|
#include "pcb.h" // hardware-specific settings
|
||||||
#include "config.h" // user-specific configuration
|
#include "config.h" // user-specific configuration
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include <unity.h>
|
#include <unity.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "adc_dma.h"
|
#include "adc_dma.h"
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "half_bridge.h"
|
#include "half_bridge.h"
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "adc_dma_stub.h"
|
#include "adc_dma_stub.h"
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Martin Jäger / Libre Solar
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "adc_dma_stub.h"
|
#include "adc_dma_stub.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user