The file clock.c refers back to
extern ModuleClock *ModuleClockList[]
extern ClockDomain *clockDomainList[];
in AM335X_StarterWare_02_00_00_06\examples\evmAM335x\demo\am335x_clock_data.c
It seems to me that a file in the system_config folder should not have to rely on a file in the demo folder in order to compile and link. I can definitley see why something in the demo folder would have to rely on the system_config folder, but not the other way around. Anyway, it is easy enough for me to change if I want, but I am trying to avoid modifying StarterWare as much as possible since I like the concept so much.
Thanks
I guess I should also point out that StarterWare has two files with the same name.
AM335X_StarterWare_02_00_00_06\drivers\dmtimer.c
AM335X_StarterWare_02_00_00_06\platform\evmAM335x\dmtimer.c
Hi Brad,
Thanks for pointing out.
extern ModuleClock- yes it should be defined in lib and referenced by application. We will update this before the next release.
dmtimer- we kept the same name so that it will be easy to identify the code for a peripheral easily. Anyway since they are in different folders it should not be an issue. Do you see any issue in keeping same name?
Regards
Baskaran
Same name is OK. I just found it a little confusing at first.
Baskaran,
I am often re-using Starterware code in my projects by just copying some files. I do not link the whole lib. So in that case same names are not good. And in general they are not good for maintenance and such... A small prefix or so would do to keep the relations, or?
Just my two cents.
Regards.