steved Posted July 13, 2014 Report Posted July 13, 2014 Following on from my previous post, I've written some code for a general-purpose registry for small chunks of data; generally as the discussions in that thread.Not properly integrated into ugfx, but works for me!I'm using the code on ChibiOS with a small I2C FRAM (similar to an EEPROM) - limiting data size to about 250 bytes for simplicity at the I2C level. There's also a skeleton interface to GFILE.Each registry entry is assigned a 'tag' (16-bit value), with two ways of using the code:a) With a list of predetermined tags. (Very small code overhead)b) More as a crude (but simple) file system, where any tag value is allowed.The code also introduces another idea - a set of ugfx-wide error/result codes, which may generate some comment!ugfx_updates_010714.zip
inmarket Posted July 14, 2014 Report Posted July 14, 2014 Thanks. I look forward to going through the code over the next few days and integrating it into the ugfx repository.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now