sys: util: add binary coded decimal functions

Some devices (such as RTCs) have data formats that expect BCD values
instead of binary. These routines allow for converting between binary
and BCD formats.

Signed-off-by: Jake Swensen <jake@swensen.io>
1 file changed