Hi,
I am trying to set some pins to digital.
The datasheet for PIC32MX575F256L, shows this register.
https://cboard.cprogramming.com/imag...AASUVORK5CYII=
So i code this.
Upon compiling i get this errorCode:AD1PCFGbits.PCFG0 = 1; //make digital
main.c:41:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
Commenting out the register command, my code compiles and runs properly with no errors or warnings.
If i place this line inside main() it compiles fine.
Why does this register command have to be inside main() to compile ?