|Top Previous Next|
1. Add settings.tbs and settings.tbh files to your project (they are in current_library_set\settings\trunk).
2. Add the following to the includes section of the global.tbh file:
3. Create empty callback procedure bodies (presumably in the device.tbs, and according to declarations in settings.tbh):
4. Add an empty settings.xtxt file to your project. In the Add New File to Project dialog set the Type to Configuration File, and the Format to STG (Settings) Library.
5. Define desired settings through the configurator.
7.Take care of setting initialization.
1.By default, non-volatile settings are stored in the EEPROM. You can also store the settings on the flash disk. EEPROM offers limited (but usually sufficient) storage with a faster access, while the flash disk offers a virtually unlimited storage with a slower access. Go with the EEPROM whenever possible. If you want to use the flash disk, select Use Flash Disk option in the configurator; then set the desired Filename (this is the name of the file that will store setting values).
2. Set Redundancy to Non-volatile only to increase the reliability of settings by keeping two independent copies of their values. The penalty is in the reduced performance of the library (increased setting access time) and doubling of the EEPROM (or flash) memory storage needs (see Operation Details for explanation how memory is allocated for both copies).