[riot-notifications] [RIOT-OS/RIOT] drivers/ltc4150: (Re-)implemented driver for the LTC4150 coulomb counter (#10755)

Marian Buschsieweke notifications at github.com
Fri Jan 11 16:49:18 CET 2019


### Contribution description

This PR implements a driver for the LTC4150 coulomb counter. A driver for that device was previously part for RIOT, but was dropped because of quality shortcomings. This driver is written from scratch.


### Testing procedure

The LTC4150 is integrated in the MSB-A2 board, thus using that board will be most convenient to use for testing. However, this chip is also cheaply available as breakout board from various vendors, which all seem to be based on the same open hardware PCB.

Testing:

1. Build, flash & run `tests/driver_ltc4150` on the MSB-A2. I intended the program to be self-explaining - so I will not provide more information here to see if I indeed reached that goal
2. Build, flash & run `example/default`. Try to read the data using the `saul` shell command

### Issues/PRs references

This PR competes with PR https://github.com/RIOT-OS/RIOT/pull/9653 also opened by me. I personally favor this PR strongly over the old approach.
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/10755

-- Commit Summary --

  * sys/shell: Removed fragments of old driver
  * sys/phydat: Added unit Coulomb
  * drivers/saul: Added coulomb counter & ammeter
  * tests/saul: Updated BOARD_INSUFFICIENT_MEMORY
  * drivers/ltc4150: (Re-)implemented LTC4150 driver
  * drivers/saul: Integrated ltc4150
  * boards/msba2: Added ltc4150 to saul_default
  * drivers/ltc4150: Allow tracking last minute charge
  * tests: Added test for ltc4150 driver

-- File Changes --

    M boards/msba2/Makefile.dep (1)
    M drivers/Makefile.dep (10)
    M drivers/Makefile.include (4)
    A drivers/include/ltc4150.h (344)
    M drivers/include/saul.h (2)
    A drivers/ltc4150/Makefile (1)
    A drivers/ltc4150/include/ltc4150_params.h (96)
    A drivers/ltc4150/ltc4150.c (201)
    A drivers/ltc4150/ltc4150_last_minute.c (94)
    A drivers/ltc4150/ltc4150_saul.c (67)
    M drivers/saul/saul_str.c (2)
    M sys/auto_init/auto_init.c (4)
    A sys/auto_init/saul/auto_init_ltc4150.c (83)
    M sys/include/phydat.h (1)
    M sys/phydat/phydat_str.c (1)
    M sys/shell/commands/shell_commands.c (9)
    A tests/driver_ltc4150/Makefile (8)
    A tests/driver_ltc4150/main.c (304)
    M tests/saul/Makefile (3)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/10755.patch
https://github.com/RIOT-OS/RIOT/pull/10755.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10755
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190111/3b432275/attachment.html>


More information about the notifications mailing list