Guidance regarding Source Code
-
Hi,
I've been looking into the Duet's source code and here I can see all the different libraries for the firmware, but where can I find the main source code that employs these libraries?
Many thanks in advance,
SnowCrash -
Go up one folder for that one. The Duet folder contains code used by the legacy Duets (06 and 085) only.
-
@dc42 said in Guidance regarding Source Code:
Go up one folder for that one. The Duet folder contains code used by the legacy Duets (06 and 085) only.
Thanks, @dc42, good to know!
Ok, I went one up ('src'), still seeing only *.h and *.c files. Is there no single main *.c file that ties them all together? and, if not, could you please explain how does it work exactly?
-
The "main program" file is in project CoreNG because it does initialisation first. It calls UrgentInit and later AppMain in the RepRapFirmware project.
Make sure you use the v2-dev branches of RepRapFirmware and CoreNG because that's where development takes place at present.
-
@dc42 said in Guidance regarding Source Code:
The "main program" file is in project CoreNG because it does initialisation first. It calls UrgentInit and later AppMain in the RepRapFirmware project.
Make sure you use the v2-dev branches of RepRapFirmware and CoreNG because that's where development takes place at present.
I can only see 'UrgentInit' being called from '/src/Platform.cpp', but that's under the main tree, not v2-dev branch.
Can't see 'AppMain' being called anywhere.
I know it's a pain to create, but I think a wiki with some overview and guidance to help understand the software structure and flow process would come a long way in helping developers contribute to the duet project.