I have been trying this:
Code:
ifdef DCFG
LIST
__CONFIG _CONFIG1L, _CPUDIV_NOCLKDIV_1L & _USBDIV_OFF_1L
__CONFIG _CONFIG1H, _FOSC_HS_1H & _PLLEN_OFF_1H & _PCLKEN_ON_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
__CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H
endif
then in my program
the most I can figure is the DEFINE is not being passed to the .INC file. So either it can't
, or I just don't know how to do it. I am hoping I just don't know how yet.
Now I am pretty sure this will always evaluate false as I never get the overwrite error. If i change to
I always get the error. So I think the code added to the .INC works, just have no way to pass DCFG
Bookmarks