Martin Jaeger
20fbefc19b
Zephyr: DAC using LL added for STM32L0 and STM32F0
2020-02-05 18:06:11 +01:00
Martin Jaeger
c31f8d5014
Fix PlatformIO debug error in ext.cpp
...
Without this dummy implementation of std::__throw_bad_alloc() the
linker was throwing errors.
2020-02-05 18:06:06 +01:00
Martin Jaeger
83d7c36778
Zephyr: MPPT 1210 HUS 0v7 board added
2020-02-05 18:05:55 +01:00
Martin Jaeger
3a8103457f
Add type-checking to data objects map
2020-01-31 14:50:32 +01:00
Martin Jaeger
1b6a7f82d7
Zephyr: CAN support added
...
So far, only publishing messages are supported (no RX yet).
Logging is switched on again, but with minimal output only (suitable
for small F0 MCUs). CAN is activated by default for MPPT 2420 LC.
2020-01-30 16:54:58 +01:00
Martin Jaeger
e078b87553
Zephyr: MPPT 2420 LC board added
2020-01-29 11:03:09 +01:00
Martin Jaeger
81c0764f2c
Fix DMA memory access violation (wrong length setting)
2020-01-28 15:28:46 +01:00
Martin Jaeger
8c3a6b7160
Zephyr: EEPROM for STM32L0 working
2020-01-28 14:23:47 +01:00
Martin Jaeger
eed8c9114c
Coding style updated/fixed
...
Indentations of class definitions and preprocessor statements were not
uniform throughout the code. This commit cleans up indentations as well
as the order of include statements.
Style conventions see: https://github.com/LibreSolar/coding-style
2020-01-28 13:20:01 +01:00
Martin Jaeger
c04081fc8a
Make Serial and OLED configurable via Kconfig
2020-01-28 12:13:54 +01:00
Martin Jaeger
05292c12ba
ADC & DMA renamed to DAQ (data acquisition)
2020-01-27 15:13:53 +01:00
Martin Jaeger
dc394cc198
DC/DC: HS MOSFET fail-safe protection enabled
2020-01-27 15:12:15 +01:00
Martin Jaeger
a457c2cc9b
Fix DC/DC startup condition check
2020-01-27 14:41:48 +01:00
Martin Jaeger
24f751b2e5
Initial support of MPPT 2420 HPX board
...
- Some flags changed to make the firmware compile for new STM32G431 MCU
- Zephyr board definition added
- Serial, OLED display and LED working
- ADC compiling, but not yet working
2020-01-23 14:41:44 +01:00
Martin Jaeger
d5ce578aeb
Zephyr: DMA setup via LL instead of registers
2020-01-23 09:51:58 +01:00
azeemshatp
64bd1930b0
Support continuous integration test in Windows.
...
The 'check.bat' file is introduced to support continuous integration test locally in windows environment. The batch file may be run from Windows command prompt.
2020-01-23 08:06:13 +01:00
azeemshatp
f830389c33
Implemented Thingset Serial functionality in Zephyr framework.
...
Implemented using UART driver APIs.
2020-01-23 08:06:13 +01:00
Martin Jaeger
41b4607cc7
Fix additional bug in load unit-test
2020-01-20 15:22:21 +01:00
Martin Jaeger
69747a588d
Fix initialization bug in load unit-test
2020-01-20 10:41:48 +01:00
Martin Jaeger
10f7d44bdf
Zephyr: Load output added
...
Overcurrent protection in PWM charge controller not yet working for Zephyr.
2020-01-18 16:30:37 +01:00
Martin Jaeger
d5ea6b5653
Zephyr: Custom DTS binding for GPIO switch
...
Previously, the LED binding was abused. DTS is now much cleaner.
2020-01-18 15:56:57 +01:00
Martin Jaeger
0c01c3d013
Fixed wrong initialization of static Wh counters
2020-01-16 20:21:08 +01:00
Martin Jaeger
a76b92c27b
time(NULL) replaced with uptime() in helper files
...
Reason: Zephyr does not support time(NULL). This way it is portable.
2020-01-16 20:04:37 +01:00
Martin Jaeger
632eb5a4f7
Zephyr: ADC HAL replaced with LL
2020-01-16 16:21:21 +01:00
Martin Jaeger
27bb53bbeb
Zephyr: ADC based on STM HAL working
2020-01-16 12:24:25 +01:00
Martin Jaeger
cb988639ce
Zephyr: Added PWM 2420 LUS board
2020-01-09 13:56:02 +01:00
Martin Jaeger
04f0d42970
Zephyr board names unified with mbed code
2020-01-07 09:38:10 +01:00
Martin Jaeger
90f4c9af00
ThingSet and OLED libs added as git submodules
2020-01-07 07:40:46 +01:00
Martin Jaeger
e1915ab501
Releases mentioned in README.md
2020-01-06 19:27:13 +01:00
Martin Jaeger
16ca793bb3
Port configuration based on Kconfig implemented
2020-01-06 19:16:44 +01:00
Martin Jaeger
7bd9bdeafd
Kconfig: User-configuration added
2020-01-06 19:05:09 +01:00
Martin Jaeger
d654324860
Charger-specific features added to Zephyr board spec
...
Hardware features like PWM switch, DC/DC converter and LED config
are now configured in the board definition. Actual source files still
need to be changed to use defines with CONFIG_ prefix instead of
defines from pcb.h.
2019-12-31 13:19:26 +01:00
Martin Jaeger
7f4aaf97c3
Moved cal register definitions to mcu.h
2019-12-31 13:16:14 +01:00
Martin Jaeger
93418fc8c8
Fixed basic nanogrid port implementation
...
Instead of SOLAR_TERMINAL, GRID_TERMINAL has to be defined in config.h
(see also template).
v19.0
2019-12-20 14:52:57 +01:00
Martin Jaeger
53ae6d4608
File headers shortened using SPDX-License-Identifier
2019-12-20 11:40:10 +01:00
Martin Jaeger
7f72d17164
Readme: Added instructions for Zephyr
2019-12-20 11:02:44 +01:00
Martin Jaeger
dc270372af
OLED display integrated with Zephyr
...
- Some fixes in DTS and pinmux settings
- Supporting different I2C address definitions of mbed and zephyr
- Thread for ext_mgr added
2019-12-20 10:51:00 +01:00
Martin Jaeger
117455390b
OLED library refactoring to prepare Zephyr integration
...
- Made Adafruit GFX library independent of mbed Stream class
- Major cleanup/rewrite of SSD1306 specific class
- Dynamically allocated std::vector display buffer replaced with statically
allocated std::array (leads to more calculated RAM usage only because
previous heap usage is not considered in memory summary)
- Commands for brightness control and to prevent shifted display now
integrated in SSD1306 class
2019-12-20 10:44:53 +01:00
Martin Jaeger
8c3c08df26
Removed broken mbed USB CDC libraries
2019-12-20 10:44:21 +01:00
Martin Jaeger
3f89943edf
ThingSet interfaces merged with Ext interfaces
2019-12-20 10:43:51 +01:00
Martin Jaeger
4326d74fe2
UExt interfaces simplified and renamed to Ext
2019-12-20 10:42:45 +01:00
Martin Jaeger
7633dc1d93
Zephyr: Clock setup fixed and LEDs implemented
2019-12-20 10:41:53 +01:00
Martin Jaeger
62f2f1978c
UEXT and ThingSet code moved to ext folder
2019-12-20 10:38:31 +01:00
Martin Jaeger
88148e70cb
Initial compiling Zephyr integration
2019-12-20 10:37:50 +01:00
Martin Jaeger
b87d223dff
Conformance testing script check.sh added
2019-11-21 08:34:55 +01:00
Martin Jaeger
67c5bc5504
Check for trailing whitespaces added to TravisCI
...
Rationale: Many editors (inclding mine) are set to automatically remove
trailing whitespaces. Updating files with trailing spaces creates distracting
additional lines in diffs.
2019-11-21 07:45:16 +01:00
Martin Jaeger
74b765e801
Trailing white spaces removed
2019-11-21 07:44:15 +01:00
Martin Jaeger
7952ac99b0
Subfolder img with OLED bitmap raw files removed
2019-11-21 07:38:32 +01:00
Martin Jäger
0086a739ad
Create CONTRIBUTING.md
2019-11-11 21:43:49 +01:00
Martin Jäger
a209761fd9
Create CODE_OF_CONDUCT.md
2019-11-11 21:02:26 +01:00