Dimebag wrote:so,
XTAL_FREQ = xxx should work if only the function/macro is called.
__delay_ms() is actually a macro defined by the compiler, and it uses the XTAL_FREQ definition as part of its calculations to get the correct delay.
__delay_ms() should be available to mplabx user to set clock speed with TCY1.
I have no idea what you are trying to say here.
I don't know why you are still referring to MPLABX. It is the compiler (Hitech C, XC8, whatever) that is providing this function. MPLABX is just the editor.
I am trying to understand Rick. I have tried to get the Macro...I just missed something to get it to work.
Have you removed the line I asked you to, and tried it? It should just work.