Hi, Trying to build come simple code to o/p a 50Hz sine wave from a LUT but cant get rid of the last few compiler errors and wondered if anyone could help at all....
Target device is a dsPEC33FJ256MC710
MOD FESS Main.c:97: warning: type defaults to 'int' in declaration of 'PTCON'
MOD FESS Main.c:97: error: conflicting type qualifiers for 'PTCON'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:1713: error: previous declaration of 'PTCON' was here
MOD FESS Main.c:97: warning: data definition has no type or storage class
MOD FESS Main.c:103: warning: type defaults to 'int' in declaration of 'PTPER'
MOD FESS Main.c:103: error: conflicting type qualifiers for 'PTPER'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:1759: error: previous declaration of 'PTPER' was here
MOD FESS Main.c:103: warning: data definition has no type or storage class
MOD FESS Main.c:111: error: syntax error before '.' token
MOD FESS Main.c:130: warning: type defaults to 'int' in declaration of 'PTMR'
MOD FESS Main.c:130: error: conflicting type qualifiers for 'PTMR'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:1746: error: previous declaration of 'PTMR' was here
MOD FESS Main.c:130: warning: data definition has no type or storage class
MOD FESS Main.c:132: error: syntax error before '.' token
MOD FESS Main.c:134: warning: type defaults to 'int' in declaration of 'PDTCON1'
MOD FESS Main.c:134: warning: data definition has no type or storage class
MOD FESS Main.c:135: warning: type defaults to 'int' in declaration of 'PDTCON2'
MOD FESS Main.c:135: warning: data definition has no type or storage class
MOD FESS Main.c:136: warning: type defaults to 'int' in declaration of 'POVDCON'
MOD FESS Main.c:136: warning: data definition has no type or storage class
MOD FESS Main.c:138: warning: type defaults to 'int' in declaration of 'PFLTACON'
MOD FESS Main.c:138: warning: data definition has no type or storage class
MOD FESS Main.c:139: warning: type defaults to 'int' in declaration of 'PFLTBCON'
MOD FESS Main.c:139: warning: data definition has no type or storage class
MOD FESS Main.c:149: error: syntax error before 'while'
MOD FESS Main.c:156: warning: type defaults to 'int' in declaration of 'PDC1'
MOD FESS Main.c:156: error: conflicting type qualifiers for 'PDC1'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:2062: error: previous declaration of 'PDC1' was here
MOD FESS Main.c:156: warning: data definition has no type or storage class
MOD FESS Main.c:156: error: syntax error before '=' token
MOD FESS Main.c:167:2: error: #endif without #if
Any help would be most appreciated....
Thanks
Target device is a dsPEC33FJ256MC710
MOD FESS Main.c:97: warning: type defaults to 'int' in declaration of 'PTCON'
MOD FESS Main.c:97: error: conflicting type qualifiers for 'PTCON'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:1713: error: previous declaration of 'PTCON' was here
MOD FESS Main.c:97: warning: data definition has no type or storage class
MOD FESS Main.c:103: warning: type defaults to 'int' in declaration of 'PTPER'
MOD FESS Main.c:103: error: conflicting type qualifiers for 'PTPER'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:1759: error: previous declaration of 'PTPER' was here
MOD FESS Main.c:103: warning: data definition has no type or storage class
MOD FESS Main.c:111: error: syntax error before '.' token
MOD FESS Main.c:130: warning: type defaults to 'int' in declaration of 'PTMR'
MOD FESS Main.c:130: error: conflicting type qualifiers for 'PTMR'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:1746: error: previous declaration of 'PTMR' was here
MOD FESS Main.c:130: warning: data definition has no type or storage class
MOD FESS Main.c:132: error: syntax error before '.' token
MOD FESS Main.c:134: warning: type defaults to 'int' in declaration of 'PDTCON1'
MOD FESS Main.c:134: warning: data definition has no type or storage class
MOD FESS Main.c:135: warning: type defaults to 'int' in declaration of 'PDTCON2'
MOD FESS Main.c:135: warning: data definition has no type or storage class
MOD FESS Main.c:136: warning: type defaults to 'int' in declaration of 'POVDCON'
MOD FESS Main.c:136: warning: data definition has no type or storage class
MOD FESS Main.c:138: warning: type defaults to 'int' in declaration of 'PFLTACON'
MOD FESS Main.c:138: warning: data definition has no type or storage class
MOD FESS Main.c:139: warning: type defaults to 'int' in declaration of 'PFLTBCON'
MOD FESS Main.c:139: warning: data definition has no type or storage class
MOD FESS Main.c:149: error: syntax error before 'while'
MOD FESS Main.c:156: warning: type defaults to 'int' in declaration of 'PDC1'
MOD FESS Main.c:156: error: conflicting type qualifiers for 'PDC1'
c:/program files/microchip/mplab c30/bin/bin/../../support/dsPIC33F/h/p33FJ256MC710.h:2062: error: previous declaration of 'PDC1' was here
MOD FESS Main.c:156: warning: data definition has no type or storage class
MOD FESS Main.c:156: error: syntax error before '=' token
MOD FESS Main.c:167:2: error: #endif without #if
Any help would be most appreciated....
Thanks
Attachments
-
7.6 KB Views: 15