Martin Jäger
bbd1312fe5
Relocate and clean up application Kconfig structure
2020-07-24 08:49:47 +02:00
Martin Jäger
c2ef955a63
Replace custom print_* with Zephyr LOG_*
2020-07-23 17:34:41 +02:00
Martin Jäger
8e06357a7d
Make CAN node ID configurable
2020-07-23 17:34:41 +02:00
Martin Jäger
70baedf95d
CAN: Separate thread for pub messages
2020-07-23 17:34:41 +02:00
Martin Jäger
ed374e8e99
Remove CAN msg queue and update ThingSet lib
2020-07-23 17:34:41 +02:00
Martin Jäger
a584904470
Switch to new DT_ macros
2020-07-23 17:34:39 +02:00
Martin Jäger
7af7d1c4ee
Add CAN ISO-TP support
2020-07-23 12:55:37 +02:00
Martin Jäger
a7f4ccaa91
Add CAN support for MPPT 2420 RC board
...
The CAN-FD driver is not yet in Zephyr master, so it is required to get
Zephyr PR 22832 to actually use CAN with this MCU.
2020-07-23 12:41:24 +02:00
Martin Jäger
3185ff32a1
Add support for Zephyr 2.3.0 (using west)
...
Enable CONFIG_LEGACY_DEVICETREE_MACROS and fix removed Kconfig values
like UART_1 to support v2.2 and v2.3.
2020-06-17 11:15:38 +02:00
Martin Jäger
efc0bc8fdc
Update to ThingSet library v0.3
2020-05-06 12:53:26 +02:00
Martin Jäger
ce7f63b888
Introduce generic "outputs" DTS binding
...
Replaces previous "switch" and "pwm-out" bindings and allows to reference
either gpio or pwm handle and specify maximum current.
Also replacing CONFIG_HAS_LOAD and CONFIG_HAS_USB_PWR with DT_ variants.
2020-05-06 12:53:26 +02:00
Martin Jäger
c25640b987
Fix blocking if CAN not connected to bus
2020-05-06 12:53:26 +02:00
Martin Jäger
2a71d02aeb
Move PCB and user config to board Kconfig
...
Files in src/pcbs/xyz.h are moved to boards/xyz/board.h. User settings from
src/config.h are also configured via Kconfig, so the file is removed.
2020-04-30 10:53:58 +02:00
Martin Jäger
2d74a3a554
Mbed support removed
...
Rationale: The support for both Zephyr and Mbed made the code confusing,
especially because of many ifdefs.
Zephyr RTOS is the future!
2020-04-04 08:21:43 +02:00
Martin Jaeger
08974169ab
Use new Zephyr 2.2 GPIO driver API features
...
Enable and disable pins are now handled the same using _set function
instead of _write and using ACTIVE_HIGH/LOW setting in dts.
2020-02-13 18:35:42 +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
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
53ae6d4608
File headers shortened using SPDX-License-Identifier
2019-12-20 11:40:10 +01:00
Martin Jaeger
3f89943edf
ThingSet interfaces merged with Ext interfaces
2019-12-20 10:43:51 +01:00