Step 1: The Embryo
|Top Previous Next|
This step corresponds to test_stg_lib_1.
The embryonic project defines the settings and compiles correctly. It does nothing else.
We assume you are not going to type everything in from scratch and just open the test_agg_lib_1 project. Notice that...
1. Settings.tbs and settings.tbh are added to the project (from current_library_set\settings\trunk\). There is also a necessary line in global.tbh: include "settings\trunk\settings.tbh".
2. There is a settings.xtxt configuration file with type= configuration file, and format= Setting (STG) library. There is a line in global.tbh that is required for the configuration file to work correctly: includepp "settings.xtxt".
3. In the configuration file, Debug Printing is enabled. This allows you to "see what's going on". Don't forget to disable this later, after you've made sure that the library operates as expected.
4. There are empty callback procedures in device.tbs:
6. All settings are defined, as on the screenshot shown here.
Compile and run the project — you will see the output like this:
You see this printout because the Debug Printing option is enabled (checked).
This sample printout from the output pane shows that both RAM settings got initialized — it happens automatically because, obviously, RAM settings need initialization every time the program runs. As for our non-volatile settings, we are supposed to find a way to initialize them in some convenient way. Read on...