[riot-notifications] [RIOT-OS/RIOT] SAUL: Reduce RAM requirements (#11392)

Marian Buschsieweke notifications at github.com
Mon Apr 15 11:57:26 CEST 2019


### Contribution description
 - Use [fmt](http://api.riot-os.org/group__sys__fmt.html) instead of printf/stdio for output in phydat and SAUL
    - This reduces RAM requirements a bit at the cost of slightly increased ROM
- Improved stringification of SAUL classes
    - This reduces RAM requirements quite a bit
    - Code declaring SAUL classes had to be changed a bit, but the binary format of SAUL class identifiers remains the same
    - The new declaration requires to lines of code to be inserted instead of one (boo!), but manual assignment and management of numbers is no longer required (yeah!)

### Testing procedure
`examples/saul` should still work as expected on you favorite board.

### Issues/PRs references
None

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * sys/phydat: Use fmt instead of stdio/printf
  * sys/saul: Use fmt instead of stdio/printf
  * drivers/saul: Improved stringification

-- File Changes --

    M Makefile.dep (1)
    M drivers/include/saul.h (156)
    M drivers/saul/saul_str.c (106)
    M sys/phydat/phydat_str.c (29)
    M sys/saul_reg/saul_reg.c (1)
    M sys/shell/commands/sc_saul_reg.c (69)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11392.patch
https://github.com/RIOT-OS/RIOT/pull/11392.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/11392
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190415/88321f8f/attachment-0001.html>


More information about the notifications mailing list