feat(epicardium): read card10.cfg
Adds simple config parser along with config_ API that:
- supports default values for options
- allows typed querying of config values
- types supported: boolean, integer, floating point and string
unknown options are ignored and LOG_WARNed on the console
So it seems I suck at writing parsers, the main loop is a little wonky but it works.
Tested:
- int, bool, double option types
- option.names.with.dots
- whitespace all over the place
- empty card10.cfg
Edited by swym
Merge request reports
Activity
added 1 commit
- 0a5dc41a - lifecycle: use execulte_elf option from card10.cfg
added 3-Epicardium 3-Module 6 - Needs Review labels
- Resolved by swym
LGTM
card10.cfg is also already blacklisted for write from pycardium, so this can be used by users
changed milestone to %v1.7
mentioned in merge request !186
changed milestone to %v1.8
- Resolved by swym
- Resolved by swym
- Resolved by swym
- Resolved by rahix
added 6 - Changes Requested label and removed 6 - Needs Review label
changed milestone to %v1.9
added 134 commits
-
0a5dc41a...37da10f9 - 131 commits from branch
card10:master
- 54cb7169 - feat(epicardium): read card10.cfg
- 57bfade4 - lifecycle: use execulte_elf option from card10.cfg
- 4a0631b9 - card10.cfg: seek back in the file instead of memmoving around
Toggle commit list-
0a5dc41a...37da10f9 - 131 commits from branch
added 1 commit
- fe154963 - card10.cfg: have strtol detect base, fix zero-termination bug for
Please register or sign in to reply