BackupGGCode / propgcc

GCC for the Parallax Propeller Microcontroller
Other
0 stars 0 forks source link

Need a way to make .cfg file variables available to the user's C code #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The .cfg files that propeller-load uses have useful information in them that 
may be of use to the user's program once it is loaded. For instance, the 
baudrate that is used for the serial port will probably want to be the same as 
the one the loader uses. Also, any SD card pin numbers or other parameters 
would be useful if the user's program wants to use the SD card itself.

This can be done by having the loader automatically initialize global variables 
with names that match the .cfg file variables. For instance, the config file 
variable "baudrate" can be used to initialize the user variable "_baudrate". 
This can be done for the SD card parameters as well. For example, the config 
file variable "sdspi-clk" can be used to initialize the user variable 
"_sdspi_clk".

Original issue reported on code.google.com by dbet...@gmail.com on 2 May 2012 at 2:53

GoogleCodeExporter commented 9 years ago

Original comment by dbet...@gmail.com on 2 May 2012 at 3:36

GoogleCodeExporter commented 9 years ago
This is currently only implemented for LMM mode but XMM mode will be added soon.

Original comment by dbet...@gmail.com on 2 May 2012 at 3:37

GoogleCodeExporter commented 9 years ago

Original comment by dbet...@gmail.com on 2 May 2012 at 3:38

GoogleCodeExporter commented 9 years ago
This feature is complete for both LMM and XMM modes.

Original comment by dbet...@gmail.com on 21 Jun 2012 at 6:59