RIT-Launch-Initiative / FSW

Firmware for Launch's flight hardware
GNU Affero General Public License v3.0
4 stars 0 forks source link

Generic logging utilities #26

Closed yevagorbachev closed 2 weeks ago

yevagorbachev commented 5 months ago

Utilities to conveniently use non-volatile storage for configs and logged data

Minimally,

Additionally,

Function standards

yevagorbachev commented 4 months ago

Should more be "utilities"

yevagorbachev commented 4 months ago

Description to follow from @AarC10

AarC10 commented 4 months ago

Most functionality should be straightforward in Zephyr it seems that utilities may not need to be as comprehensive based on https://docs.zephyrproject.org/latest/services/file_system/index.html but that is TBD. Don't have enough experience with Zephyr file system library to be completely specific. Should also confirm if the filesystem does the caching and buffering for you.

Some good helper functions to to include would be along these lines

Function Requirements

yevagorbachev commented 4 months ago

Helpers

Functions

Do you care if I use a C++ class for this?

yevagorbachev commented 2 months ago

Minimum working example on feature/Yev/lfs-utils. I'm using C++ instead because otherwise there is not really much to improve on the VFS API (without hackily re-creating objects using the PASTE2 pattern Zephyr seems to like).