Only the required .h files ...
Yes this is normal.
Oh, now I get it. I simply missed the point that for the PIC24 projects the SYSTEM_Initialize
function, called from main(), is in its own system.c
file with its prototype in system.h.
Whereas, for the 8-bit and 32-bit MCC projects that I have implemented, SYSTEM_Initialize()
is in mcc.c
and its prototype is in mcc.h
, which includes headers for all of the MCC modules in the project. So for those projects main.c
always includes mcc.h
I guess that if the MCC guys had included mcc.h
in the PIC24 project's main.c
, people would have complained about including all of those other headers that weren't needed in the main application.
Thank you for your response, which was more polite than I deserved.
Now I wish I had simply answered the OP's question about how to include headers for all of the modules (include mcc.h
) and reserved my derogatory comments for other MCC "annoyances" that people complain about from time to time. (But sometimes I just can't help myself.)
Footnote: When I was a kid my slightly older brother would tell people that he was the "normal" brother and I was abnormal. I felt flattered at the time because I thought abnormal meant "above normal." Some people still think of me as abnormal.
post edited by davekw7x - 2019/07/10 07:19:47