FreeEMS  0.2.0-SNAPSHOT-282-g9efc524
General Strategies

This page exists to document general coding strategies used in this firmware.

Each item should contain a title, description, situations it is useful in and somewhere you can see an example of it in use.

Reading/Writing from/to a specific page :

Save the current page value to a variable, change the page value to the desired one, read or write the paged memory, change the page back and return the value

This is applicable to all three available memory types: Flash, RAM and EEPROM.

Examples of its use can be found in flashWrite.c

Todo:
TODO TBC (other strategies)