Jump to content
Sign in to follow this  

Registry/calibration data code

Recommended Posts

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!


Share this post

Link to post
Share on other sites
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...