Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By adding an "eep" memory section, and a NOLOAD step into the linker scripts, you can now let gcc allocate variables in eeprom for you. However, as fitting for eeprom, they cannot be initialized, and will not be loaded at any time. This simply lets you get place variables in the eeprom space. Example: struct whatever __attribute__((section(".eeprom"))) blah; struct another __attribute__((section(".eeprom"))) wop; printf("%#x", &blah); // ==> 0x08080000 printf("%#x", &wop); // ==> 0x08080000 + sizeof(blah) You can read directly out of these variables, but need to use the eeprom_ routines for writing to them.
- Loading branch information