esp-hal
esp-hal copied to clipboard
esp-config: validation of input
trafficstars
Motivations
We should offer some way to validate the user provided options make sense, this may include:
- [ ] Ensuring provided integers are between upper and lower ranges (what about multiple ranges?)
- [ ] Ensuring that some strings are from a select list of viable options, i.e users could only choose between
["uart", "usb", "usb-serial-jtag"], everything else would be invalid.